public ActionResult Edit(EmployeePermit permit) { if (ModelState.IsValid) { _permitService.Update(permit); return(RedirectToAction("Index")); } return(View(permit)); }
public IHttpActionResult Put(List <PermitDto> list) { return(Ok(_service.Update(list))); }