public int AssignEntityToEmpty(Mugurtham.Core.Reference.ReferenceCoreEntity objReferenceCoreEntity) { try { objReferenceCoreEntity.ContactNo = string.Empty; objReferenceCoreEntity.NomineeName = string.Empty; objReferenceCoreEntity.ProfileID = string.Empty; } catch (Exception objEx) { Helpers.LogExceptionInFlatFile(objEx); } return(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); }
private int AssignEntityFromDTO(ref Mugurtham.DTO.Profile.Reference objDTOReference, ref Mugurtham.Core.Reference.ReferenceCoreEntity objReferenceCoreEntity) { try { objReferenceCoreEntity.ContactNo = objDTOReference.ContactNo; objReferenceCoreEntity.NomineeName = objDTOReference.NomineeName; objReferenceCoreEntity.ProfileID = objDTOReference.ProfileID; } catch (Exception objEx) { Helpers.LogExceptionInFlatFile(objEx); } return(0); }