private void SaveTimeSheetDetail(string DaysofWeek, int?Hours, DateTime?Period, int?ProjectID, int TimeSheetMasterID)
 {
     try
     {
         TimeSheetDetails objtimesheetdetails = new TimeSheetDetails();
         objtimesheetdetails.TimeSheetID       = 0;
         objtimesheetdetails.DaysofWeek        = DaysofWeek;
         objtimesheetdetails.Hours             = Hours == null ? 0 : Hours;
         objtimesheetdetails.Period            = Period;
         objtimesheetdetails.ProjectID         = ProjectID;
         objtimesheetdetails.UserID            = Convert.ToInt32(Session["UserID"]);
         objtimesheetdetails.CreatedOn         = DateTime.Now;
         objtimesheetdetails.TimeSheetMasterID = TimeSheetMasterID;
         int TimeSheetID = _ITimeSheet.AddTimeSheetDetail(objtimesheetdetails);
     }
     catch (Exception)
     {
         throw;
     }
 }
 private void SaveTimeSheetDetail(string DaysofWeek, int?Hours, DateTime?Period, int?ProjectID, int TimeSheetMasterID)
 {
     try
     {
         TimeSheetDetails objtimesheetdetails = new TimeSheetDetails
         {
             TimeSheetID       = 0,
             DaysofWeek        = DaysofWeek,
             Hours             = Hours ?? 0,
             Period            = Period,
             ProjectID         = ProjectID,
             UserID            = Convert.ToInt32(Session["UserID"]),
             CreatedOn         = DateTime.Now,
             TimeSheetMasterID = TimeSheetMasterID
         };
         int TimeSheetID = _ITimeSheet.AddTimeSheetDetail(objtimesheetdetails);
     }
     catch (Exception)
     {
         throw;
     }
 }