/// <summary> /// Update Agency profile for User /// </summary> /// <param name="UserSubStateRegionProfile"></param> /// <param name="UpdatedBy"></param> /// <returns></returns> public static bool UpdateUserAgency(UserRegionalAccessProfile UserAgencyProfile, int UpdatedBy) { //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.RequiresNew)) //{ //Save the Descriptors for User and then Approve. IEnumerable <int> NewDescriptorIds = UserAgencyProfile.DescriptorIDList; int UserId = UserAgencyProfile.UserId; int AgencyId = UserAgencyProfile.RegionId; string ErrorMessage; if (UserAgencyDAL.UpdateUserAgency(UserAgencyProfile, UpdatedBy)) { if (UserBLL.SaveDescriptors(UserId, NewDescriptorIds, AgencyId, UpdatedBy, out ErrorMessage)) { //scope.Complete(); return(true); } else { return(false); } } else { return(false); } //} }