/// <summary> /// API to change admin password /// </summary> /// <param name="admin"></param> /// <returns></returns> public IHttpActionResult PostChangeAdminPassword(Admin admin) { _Logger.Info("PostChangeAdminPassword API called."); try { _ExceptionCheck.ValidateAdminPassword(admin.Password); bool Check = _BusinessOperations.ChangeAdminPassword(admin); if (Check == false) { return(NotFound()); } else { return(Ok(admin)); } } catch (EmployeeManagementExceptions exception) { _Logger.Error(exception.ToString()); return(InternalServerError(exception)); } catch (Exception ex) { _Logger.Fatal(ex.ToString()); return(InternalServerError(ex)); } }