public void UpdateModel(Models.GrantAllocationAwardPersonnelAndBenefitsLineItem grantAllocationAwardPersonnelAndBenefitsLineItem)
 {
     grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemID = GrantAllocationAwardPersonnelAndBenefitsLineItemID;
     grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardID = GrantAllocationAwardID;
     grantAllocationAwardPersonnelAndBenefitsLineItem.PersonID = PersonID;
     grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemTarOrMonth = TarOrMonth;
     grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemDate       = Date;
     grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemTarHours   = TarHours;
     grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemHourlyRate = HourlyRate;
     grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemFringeRate = FringeRate;
     grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemNotes      = Notes;
 }
        public EditGrantAllocationAwardPersonnelAndBenefitsLineItemViewModel(Models.GrantAllocationAwardPersonnelAndBenefitsLineItem grantAllocationAwardPersonnelAndBenefitsLineItem)
        {
            GrantAllocationAwardPersonnelAndBenefitsLineItemID = grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemID;
            GrantAllocationAwardID = grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardID;

            PersonID   = grantAllocationAwardPersonnelAndBenefitsLineItem.PersonID;
            TarOrMonth = grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemTarOrMonth;
            if (grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemDate == DateTime.MinValue)
            {
                Date = DateTime.Today;
            }
            else
            {
                Date = grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemDate;
            }
            TarHours   = grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemTarHours;
            HourlyRate = grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemHourlyRate;
            FringeRate = grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemFringeRate;
            Notes      = grantAllocationAwardPersonnelAndBenefitsLineItem.GrantAllocationAwardPersonnelAndBenefitsLineItemNotes;
        }