Beispiel #1
0
        public async Task <IActionResult> Create([FromBody] CompanyModel request)
        {
            var returnState = await _companyServices.Create(request);

            if (returnState.Success)
            {
                return(Ok(returnState));
            }

            return(BadRequest(returnState));
        }
        public IActionResult CreateCompany(string title, string shortDescription)
        {
            var result = _main.Create(title, shortDescription);

            return(StatusCode(result.StatusCode, result));
        }