public ActionResult Edit(Guid?id, CustomerType collection) { if (!ModelState.IsValid) { return(View(collection)); } _iCustomerTypeService.Save(id, collection); _unitOfWork.Commit(); return(RedirectToAction("Index")); }
public async Task <ActionResult <CustomerTypeDto> > Post([FromBody] CustomerTypeEditDto value) { var res = await _service.Save(value); return(res); }