示例#1
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public static bool Delete(int id)
 {
     return(IncomeTypeService.Delete(id));
 }
示例#2
0
 public static DataTable GetList(string strWhere)
 {
     return(IncomeTypeService.GetList(strWhere));
 }
示例#3
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static bool Update(IncomeType model)
 {
     return(IncomeTypeService.Update(model));
 }
示例#4
0
 /// <summary>
 /// 根据id得到实例
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public static IncomeType GetModel(int id)
 {
     return(IncomeTypeService.GetModel(id));
 }
示例#5
0
 /// <summary>
 /// 根据名称得到实例
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public static IncomeType GetModelByName(string name)
 {
     return(IncomeTypeService.GetModelByName(name));
 }
示例#6
0
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 public static bool Add(IncomeType type)
 {
     return(IncomeTypeService.Add(type));
 }
示例#7
0
 public IncomeTypeController(IncomeTypeService incomeTypeService)
 {
     _incomeTypeService = incomeTypeService;
 }