示例#1
0
 public virtual void Update(FormdetailDataModel formdetail)
 {
     if (formdetail.ID > 0)
     {
         FormdetailDAL.Update(formdetail);
     }
     else
     {
         throw new Exception("Page not found");
     }
 }
示例#2
0
 public List <FormdetailDataModel> GetByForm(int id)
 {
     return(FormdetailDAL.GetByForm(id));
 }
示例#3
0
 public int GetCount(int formdetailID)
 {
     return(FormdetailDAL.GetCount(formdetailID));
 }
示例#4
0
 public virtual void Delete(int id)
 {
     FormdetailDAL.Delete(id);
 }
示例#5
0
 public virtual void Create(FormdetailDataModel formdetail)
 {
     FormdetailDAL.Create(formdetail);
 }
示例#6
0
 public virtual FormdetailDataModel Get(int id)
 {
     return(FormdetailDAL.Get(id));
 }
示例#7
0
 public virtual List <FormdetailDataModel> GetAll(int id = 0)
 {
     return(FormdetailDAL.GetAll());
 }