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

            _technicalStaffRoleService.Edit(technicalStaffRole);

            await _dbContext.SaveChangesAsync();

            return(Json(technicalStaffRole.Id));
        }