public async Task <IActionResult> CreateDiscipline([FromBody] DisciplineViewModel value)
        {
            if (ModelState.IsValid)
            {
                if (value == null)
                {
                    return(BadRequest($"{nameof(value)} cannot be null"));
                }


                Discipline model = _mapper.Map <Discipline>(value);

                var result = await _accountManager.CreateDisciplineAsync(model);

                if (result.Succeeded)
                {
                    DisciplineViewModel vm = await GetDisciplineViewModelHelper(appRole.Name);

                    return(CreatedAtAction(GetRoleByIdActionName, new { id = roleVM.Id }, roleVM));
                }

                AddError(result.Errors);
            }

            return(BadRequest(ModelState));
        }