public Response <bool> Delete(string customerId) { var response = new Response <bool>(); try { response.Data = customerDomain.Delete(customerId); if (response.Data) { response.IsSuccess = true; response.Message = "Registro exitoso"; } } catch (Exception e) { response.Message = e.Message; } return(response); }
public Response <bool> Delete(string customerId) { var response = new Response <bool>(); try { response.Data = _customerDomain.Delete(customerId); if (response.Data) { response.IsSuccess = true; response.Message = "EliminaciĆ³n exitosa"; } } catch (Exception ex) { response.Message = ex.Message; } return(response); }