Пример #1
0
        public async Task <IActionResult> CreateCompanyRole(int id, CompanyRoleToCreateDto companyRole)
        {
            CompanyRoleDto createdRole = await _service.CreateCompanyRole(id, companyRole);

            if (createdRole == null)
            {
                return(StatusCode(400));
            }
            return(StatusCode(200, createdRole));
        }