Пример #1
0
        public IActionResult CreateCompany([FromBody] CompanyCreateModel companyCreateModel)
        {
            if (companyCreateModel == null)
            {
                return(BadRequest("Error"));
            }
            bool check = _companyLogic.CreateNewCompany(companyCreateModel);

            if (check)
            {
                return(Ok("Create New Company Successful"));
            }
            else
            {
                return(BadRequest("Cannot Create New Company"));
            }
        }