/// <summary>
        /// Method to add Qualification - SS
        /// </summary>
        /// <param name="name">name of Qualification</param>
        /// <param name="instituteId">institute id</param>
        /// <returns>message</returns>
        public async Task <SharedLookUpResponse> AddQualificationAsync(AddQualificationManagementAc addQualification, int instituteId)
        {
            if (!await _iMSDbContext.Qualifications.AnyAsync(x => x.InstituteId == instituteId && x.Code.ToLowerInvariant() == addQualification.Code.ToLowerInvariant()))
            {
                var qualification = new Qualification()
                {
                    CreatedOn   = DateTime.UtcNow,
                    InstituteId = instituteId,
                    Name        = addQualification.Name,
                    Code        = addQualification.Code,
                    Description = addQualification.Description,
                    Status      = true
                };
                _iMSDbContext.Qualifications.Add(qualification);
                await _iMSDbContext.SaveChangesAsync();

                return(new SharedLookUpResponse()
                {
                    HasError = false, Message = "Qualification added successfully"
                });
            }
            else
            {
                return new SharedLookUpResponse()
                       {
                           HasError = true, ErrorType = SharedLookUpResponseType.Code, Message = "Qualification with the same code is already exist"
                       }
            };
        }
        public async Task <IActionResult> AddQualificationAsync([FromBody] AddQualificationManagementAc addQualificationManagement)
        {
            if (string.IsNullOrEmpty(addQualificationManagement.Name.Trim()))
            {
                return(Ok(new SharedLookUpResponse()
                {
                    HasError = true, ErrorType = SharedLookUpResponseType.Name, Message = "Qualification name can't be empty"
                }));
            }
            else if (string.IsNullOrEmpty(addQualificationManagement.Name.Trim()))
            {
                return(Ok(new SharedLookUpResponse()
                {
                    HasError = true, ErrorType = SharedLookUpResponseType.Code, Message = "Qualification code can't be empty"
                }));
            }
            else
            {
                var loggedInUserInstituteId = await GetUserCurrentSelectedInstituteIdAsync();

                return(Ok(await _qualificationManagementRepository.AddQualificationAsync(addQualificationManagement, loggedInUserInstituteId)));
            }
        }