Exemplo n.º 1
0
        public ActionResult Edit(Guid?id, CustomerType collection)
        {
            if (!ModelState.IsValid)
            {
                return(View(collection));
            }

            _iCustomerTypeService.Save(id, collection);
            _unitOfWork.Commit();

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public async Task <ActionResult <CustomerTypeDto> > Post([FromBody] CustomerTypeEditDto value)
        {
            var res = await _service.Save(value);

            return(res);
        }