public string SaveRations(string data) { DataTable dt = (DataTable)DTOSerializer.Deserialize(data, typeof(DataTable)); RationDAL dal = new RationDAL(); return(dal.SaveRations(dt)); }
public RationModel GetRationSearch(int pYear, int pMonth) { RationDAL dal = new RationDAL(); ParamDAL paramdal = new ParamDAL(); RationModel model = new RationModel(); model.ListMonth = paramdal.GetMonths(); model.ListYear = paramdal.GetYears(); model.ListRation = dal.GetRationSearch(pYear, pMonth); return(model); }
public string GetDataExcel(int pIdState, int pIdMonth, int pIdYear) { RationDAL dal = new RationDAL(); return(dal.GetExcel(pIdState, pIdMonth, pIdYear)); }
public List <CouponModel> GetCouponDataByState(int pIdState, int pIdYear, int pIdMonth) { RationDAL dal = new RationDAL(); return(dal.GetCouponDataByState(pIdState, pIdYear, pIdMonth)); }
public CouponModel GetCouponData(int pIdRation) { RationDAL dal = new RationDAL(); return(dal.GetCouponData(pIdRation)); }