public virtual void Update(FormdetailDataModel formdetail) { if (formdetail.ID > 0) { FormdetailDAL.Update(formdetail); } else { throw new Exception("Page not found"); } }
public List <FormdetailDataModel> GetByForm(int id) { return(FormdetailDAL.GetByForm(id)); }
public int GetCount(int formdetailID) { return(FormdetailDAL.GetCount(formdetailID)); }
public virtual void Delete(int id) { FormdetailDAL.Delete(id); }
public virtual void Create(FormdetailDataModel formdetail) { FormdetailDAL.Create(formdetail); }
public virtual FormdetailDataModel Get(int id) { return(FormdetailDAL.Get(id)); }
public virtual List <FormdetailDataModel> GetAll(int id = 0) { return(FormdetailDAL.GetAll()); }