Пример #1
0
 public Devise Put([FromBody] Devise dvs)
 {
     if (ModelState.IsValid)
     {
         _DeviseService.Update(dvs);
     }
     return(dvs);
 }
Пример #2
0
        public ActionResult <Devise> Put([FromBody] Devise devise)
        {
            var res = _DeviseService.Update(devise);

            if (res is null)
            {
                return(BadRequest());
            }
            else
            {
                return(devise);
            }
        }