public async Task <IActionResult> Post([FromBody] CompanyForInsertDTO company) { company.Username = company.Username.ToLower(); var convertedCompany = _mapper.Map <Company>(company); if (await _companyLogic.Insert(convertedCompany, company.Password)) { return(StatusCode(201)); } return(BadRequest("Error")); }