public async Task <IActionResult> DeleteCustomer([FromRoute] Guid id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(await _customerApplicationService.Delete(id)); }
public ActionResult Delete(int id) { try { _customerApplicationService.Delete(id); return(Ok()); } catch (Exception ex) { return(BadRequest(new { ex.Message })); } }
public ActionResult Delete(int id) { applicationServiceCustomer.Delete(id); return(Ok("Customer Deleted successfully!")); }