Exemplo n.º 1
0
        protected override void SaveUpdate()
        {
            base.SaveUpdate();
            var employee = PopulateEmployeeModelFromInterface();

            employee.Id           = Convert.ToInt32(recordId.Text);
            employee.ModifiedBy   = modifiedBy.Text;
            employee.ModifiedDate = modifiedDate.Value;
            using (var facade = new EmployeeCore())
            {
                facade.Update(employee);
                ShowMessage(facade);
            }
        }
Exemplo n.º 2
0
 protected override void SaveUpdate()
 {
     base.SaveUpdate();
     var employee = PopulateEmployeeModelFromInterface();
     employee.Id = Convert.ToInt32(recordId.Text);
     employee.ModifiedBy = modifiedBy.Text;
     employee.ModifiedDate = modifiedDate.Value;
     using (var facade = new EmployeeCore())
     {
         facade.Update(employee);
         ShowMessage(facade);
     }
 }