private DeleteCompanyResponseMessage OnDeleteCompanyMessage(DeleteCompanyMessage message) { companyLogic.DeleteCompany(message.CompanyId); var responseMessage = new DeleteCompanyResponseMessage(); return(responseMessage); }
public IActionResult DeleteCompany(Guid id) { bool check = _companyLogic.DeleteCompany(id); if (check) { return(Ok("Delete Success")); } return(BadRequest("Delete Error")); }