public virtual IActionResult DeleteCompany([FromRoute] int id) { try { var companyCommand = _companyAppService.DeleteCompany(id); return(ReturnResponse(companyCommand, companyCommand, null)); } catch (Exception e) { return(BadRequest("Error: " + e.Message)); } }