| | |
| | | return resultEntity; |
| | | } |
| | | |
| | | |
| | | public ResultEntity saveyufukuan(CooperatecustomCustomerDTO cooperatecustomCustomerDTO) |
| | | { |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | try |
| | | { |
| | | |
| | | |
| | | var cooperatecustomCustomer = _mapper.Map<CooperatecustomCustomer>(cooperatecustomCustomerDTO); |
| | | |
| | | |
| | | |
| | | var updateproject = _context.CooperatecustomCustomers.Find(cooperatecustomCustomer.Id); |
| | | |
| | | |
| | | updateproject.Yufukuan = cooperatecustomCustomer.Yufukuan; |
| | | updateproject.Shenyushouxin = cooperatecustomCustomer.Shenyushouxin; |
| | | updateproject.Shouxinedu = cooperatecustomCustomer.Shouxinedu; |
| | | |
| | | |
| | | _context.SaveChanges(); |
| | | resultEntity.ReturnID = cooperatecustomCustomer.Id; |
| | | resultEntity.Result = true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "保存失败,请联系管理员"; |
| | | |
| | | } |
| | | return resultEntity; |
| | | } |
| | | |
| | | public CooperatecustomCustomerDTO Get(string id) |
| | | { |
| | | |