Ejemplo n.º 1
0
 public int Edit(ref Mugurtham.Core.Reference.ReferenceCoreEntity objReferenceCoreEntity)
 {
     try
     {
         IUnitOfWork objIUnitOfWork = new UnitOfWork();
         using (objIUnitOfWork as IDisposable)
         {
             Mugurtham.DTO.Profile.Reference objDTOReference = new DTO.Profile.Reference();
             using (objDTOReference as IDisposable)
             {
                 AssignDTOFromEntity(ref objDTOReference, ref objReferenceCoreEntity);
             }
             objIUnitOfWork.RepositoryReference.Edit(objDTOReference);
             objDTOReference = null;
         }
         objIUnitOfWork.commit();
         objIUnitOfWork = null;
     }
     catch (Exception objEx)
     {
         Helpers.LogExceptionInFlatFile(objEx);
     }
     return 0;
 }
Ejemplo n.º 2
0
 public int Edit(ref Mugurtham.Core.Reference.ReferenceCoreEntity objReferenceCoreEntity)
 {
     try
     {
         IUnitOfWork objIUnitOfWork = new UnitOfWork(_objLoggedInUser.ConnectionStringAppKey);
         using (objIUnitOfWork as IDisposable)
         {
             Mugurtham.DTO.Profile.Reference objDTOReference = new DTO.Profile.Reference();
             using (objDTOReference as IDisposable)
             {
                 AssignDTOFromEntity(ref objDTOReference, ref objReferenceCoreEntity);
             }
             objIUnitOfWork.RepositoryReference.Edit(objDTOReference);
             objDTOReference = null;
         }
         objIUnitOfWork.commit();
         objIUnitOfWork = null;
     }
     catch (Exception objEx)
     {
         Helpers.LogExceptionInFlatFile(objEx);
     }
     return(0);
 }