Пример #1
0
        public RetainerModel UpdateRetainer(RetainerModel model)
        {
            var entity = _mapper.Map <Entities.XIVMultitool.Retainer>(model);

            _context.Retainers.Update(entity);

            _context.SaveChanges();

            return(_mapper.Map <RetainerModel>(entity));
        }
Пример #2
0
 public IActionResult UpdateRetainer([FromBody] RetainerModel model)
 {
     return(Ok(_service.UpdateRetainer(model)));
 }
Пример #3
0
 public RetainerModel UpdateRetainer(RetainerModel model)
 {
     return(_repo.UpdateRetainer(model));
 }
Пример #4
0
 public RetainerModel AddRetainer(RetainerModel model)
 {
     return(_repo.AddRetainer(model));
 }