public Model.Client Update(int id, ClientInsertUpdateRequest request) { var entity = _context.Client.Find(id); _mapper.Map(request, entity); _context.SaveChanges(); return(_mapper.Map <Model.Client>(entity)); }
public Model.Client Insert(ClientInsertUpdateRequest request) { var entity = _mapper.Map <Client>(request); _context.Add(entity); _context.SaveChanges(); return(_mapper.Map <Model.Client>(entity)); }
public Model.Client Update(int id, ClientInsertUpdateRequest request) { return(_service.Update(id, request)); }
public Model.Client Insert(ClientInsertUpdateRequest request) { return(_service.Insert(request)); }