示例#1
0
        private DeleteCompanyResponseMessage OnDeleteCompanyMessage(DeleteCompanyMessage message)
        {
            companyLogic.DeleteCompany(message.CompanyId);
            var responseMessage = new DeleteCompanyResponseMessage();

            return(responseMessage);
        }
示例#2
0
        public IActionResult DeleteCompany(Guid id)
        {
            bool check = _companyLogic.DeleteCompany(id);

            if (check)
            {
                return(Ok("Delete Success"));
            }
            return(BadRequest("Delete Error"));
        }