예제 #1
0
 /// <summary>
 /// 添加财产
 /// </summary>
 /// <param name="property"></param>
 /// <returns></returns>
 public bool AddProperty(Property property)
 {
     #region
     using (var db = new dimsContext())
     {
         db.Add(property);
         db.SaveChanges();
         return(true);
     }
     #endregion
 }
예제 #2
0
 /// <summary>
 /// 增加保修单
 /// </summary>
 /// <param name="repairPaper"></param>
 /// <returns></returns>
 public bool AdddRepairPaper(Repairpaper repairPaper)
 {
     #region
     using (var dbcontext = new dimsContext())
     {
         dbcontext.Add(repairPaper);
         dbcontext.SaveChanges();
         return(true);
     }
     #endregion
 }