Exemple #1
0
        public async Task <ActionResult> Add(TechnicalStaffRoleModel technicalStaffRoleModel)
        {
            var technicalStaffRole = new DomainClasses.TechnicalStaffRole
            {
                IsCommon = technicalStaffRoleModel.IsCommon,
                Name     = technicalStaffRoleModel.Name,
            };

            _technicalStaffRoleService.Add(technicalStaffRole);

            await _dbContext.SaveChangesAsync();

            return(Json(technicalStaffRole.Id));
        }