/// <summary>
 /// 编辑
 /// </summary>
 /// <param name="shiftssetting"></param>
 /// <returns></returns>
 public bool UpdateShiftssetting(Shiftssetting shiftssetting)
 {
     using (Model.hospitaldbContext ef = new hospitaldbContext())
     {
         ef.Entry(shiftssetting).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
         return(ef.SaveChanges() > 0);
     }
 }
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="shiftssetting"></param>
 /// <returns></returns>
 public bool AddShiftssetting(Shiftssetting shiftssetting)
 {
     using (Model.hospitaldbContext ef = new hospitaldbContext())
     {
         ef.Add(shiftssetting);
         return(ef.SaveChanges() > 0);
     }
 }