示例#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));
 }