public RetainerModel UpdateRetainer(RetainerModel model) { var entity = _mapper.Map <Entities.XIVMultitool.Retainer>(model); _context.Retainers.Update(entity); _context.SaveChanges(); return(_mapper.Map <RetainerModel>(entity)); }
public IActionResult UpdateRetainer([FromBody] RetainerModel model) { return(Ok(_service.UpdateRetainer(model))); }
public RetainerModel UpdateRetainer(RetainerModel model) { return(_repo.UpdateRetainer(model)); }
public RetainerModel AddRetainer(RetainerModel model) { return(_repo.AddRetainer(model)); }