Exemple #1
0
 public void Update(ActVM vm)
 {
     act.Id = vm.Id;
     act.SelectedContractorID = vm.SelectedContractorId;
     act.Date = vm.Date;
     act.ParentDocumentLink = vm.ParentDocumentLink;
     act.Note     = vm.Note;
     act.Number   = vm.Number;
     act.StatusID = vm.StatusId;
     rep.Update(act);
 }
 public void Update(AccountVM vm)
 {
     account.Id = vm.Id;
     account.SelectedContractorID = vm.SelectedContractorId;
     account.Date     = vm.Date;
     account.Note     = vm.Note;
     account.Number   = vm.Number;
     account.StatusID = vm.StatusId;
     try
     {
         rep.Update(account);
     }
     catch (Exception e)
     {
     }
 }
 public void Update(ContractVM vm)
 {
     contract.Id = vm.Id;
     contract.SelectedContractorID = vm.SelectedContractorId;
     contract.Date = vm.Date;
     contract.ParentDocumentLink = vm.ParentDocumentLink;
     contract.Note     = vm.Note;
     contract.Number   = vm.Number;
     contract.StatusID = vm.StatusId;
     try
     {
         rep.Update(contract);
     }
     catch
     {
     }
 }
 public void Update(AdditionalAgreementVM vm)
 {
     aa.Id = vm.Id;
     aa.SelectedContractorID = vm.SelectedContractorId;
     aa.Date = vm.Date;
     aa.ParentDocumentLink = vm.ParentDocumentLink;
     aa.Note     = vm.Note;
     aa.Number   = vm.Number;
     aa.StatusID = vm.StatusId;
     try
     {
         rep.Update(aa);
     }
     catch (Exception e)
     {
     }
 }
Exemple #5
0
        public void Update(EmailVM vm)
        {
            email.Id                 = vm.Id;
            email.StatusID           = vm.StatusId;
            email.From               = vm.From;
            email.To                 = vm.To;
            email.Date               = vm.Date;
            email.DateBack           = vm.DateBack;
            email.Description        = vm.Description;
            email.DeliverySystem     = vm.DeliverySystem;
            email.TrackingNumber     = vm.TrackingNumber;
            email.TrackingNumberBack = vm.TrackingNumberBack;

            try
            {
                rep.Update(email);
            }
            catch
            {
            }
        }