Exemplo n.º 1
0
        public async Task <IActionResult> Update([FromBody] CustomerViewModel employeeViewModel)
        {
            try
            {
                employeeViewModel.EditedOn   = DateTime.Now;
                employeeViewModel.EditedById = 1;
                var item = employeeViewModel.MapObject <CustomerViewModel, CustomerBo>();
                await _employeeService.Update(item);

                return(Ok());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }