public bool Update(string Id, DmPersonnelDailyT data)
        {
            var model = dbContext.DmPersonnelDailyT.SingleOrDefault(x => x.PersonnelDetailId == Id);

            if (model == null)
            {
                return(false);
            }
            model = data;
            dbContext.DmPersonnelDailyT.Update(model);
            return(dbContext.SaveChanges() > 0);
        }
 public bool Create(DmPersonnelDailyT data)
 {
     data.PersonnelDetailId = NormalHelper.GenerateNormalKey();
     dbContext.DmPersonnelDailyT.Add(data);
     return(dbContext.SaveChanges() > 0);
 }