public static BenefitsCost Create(int vEmployeeId, float vBiWeeklyDeduction, float vYearlyBenefitsCost)
        {
            BenefitsCost result = new BenefitsCost();

            result.EmployeeId         = vEmployeeId;
            result.BiWeeklyDeduction  = vBiWeeklyDeduction;
            result.YearlyBenefitsCost = vYearlyBenefitsCost;

            return(result);
        }
示例#2
0
 public int AddBenefitsCost(BenefitsCost benefits)
 {
     try
     {
         dbContextRepository.BenefitsCost.Add(benefits);
         dbContextRepository.SaveChanges();
         return(1);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
         throw;
     }
 }