/// <summary>
        /// Method to update institue - SS
        /// </summary>
        /// <param name="updateInstitute">institute detail</param>
        /// <returns>response</returns>
        public async Task <InstituteResponseAc> UpdateInstituteAsync(UpdateInstituteAc updateInstitute)
        {
            var institute = await _iMSDbContext.Institutes.FirstOrDefaultAsync(x => x.Id == updateInstitute.Id);

            if (institute != null)
            {
                institute.Address   = updateInstitute.Address;
                institute.Latitude  = updateInstitute.Latitude;
                institute.Longitude = updateInstitute.Longitude;
                institute.Location  = updateInstitute.Location;
                _iMSDbContext.Institutes.Update(institute);
                await _iMSDbContext.SaveChangesAsync();

                return(new InstituteResponseAc()
                {
                    HasError = false, Message = "Institute updated successfully"
                });
            }
            else
            {
                return new InstituteResponseAc()
                       {
                           HasError = true, Message = "Institute not found", ErrorType = InstituteResponseType.Id
                       }
            };
        }
 public async Task <IActionResult> UpdateInstituteAsync([FromBody] UpdateInstituteAc updateInstitute)
 {
     return(Ok(await _instituteManagementRepository.UpdateInstituteAsync(updateInstitute)));
 }