예제 #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));
 }