private void MigrateEntity(ProjectAccountDto sourceEntity, ProjectAccount targetEntity)
        {
            targetEntity.AccountID         = sourceEntity.AccountID;
            targetEntity.AccountName       = sourceEntity.AccountName;
            targetEntity.CountryID         = sourceEntity.CountryID;
            targetEntity.OffshoreManagerID = sourceEntity.OffshoreManagerID;
            targetEntity.OnshoreManager    = sourceEntity.OnshoreManager;
            targetEntity.PartnerManager    = sourceEntity.PartnerManager;
            targetEntity.ShortName         = sourceEntity.ShortName;

            targetEntity.UpdateTimeStamp(sourceEntity.LoggedInUserName);
        }
        private ProjectAccount CreateBusinessEntity(ProjectAccountDto accDto, bool isNewEntity = false)
        {
            ProjectAccount account = new ProjectAccount
            {
                AccountID         = accDto.AccountID,
                AccountName       = accDto.AccountName.Trim(),
                CountryID         = accDto.CountryID,
                OffshoreManagerID = accDto.OffshoreManagerID,
                OnshoreManager    = accDto.OnshoreManager,
                PartnerManager    = accDto.PartnerManager,
                ShortName         = accDto.ShortName.Trim()
            };

            account.UpdateTimeStamp(accDto.LoggedInUserName, true);
            return(account);
        }
 public void Update(ProjectAccountDto entity)
 {
     repository.Update(entity);
 }
 public void Delete(ProjectAccountDto account)
 {
     repository.Delete(account);
 }
 public void Add(ProjectAccountDto account)
 {
     repository.Add(account);
 }