You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
710 B
33 lines
710 B
using System;
|
|
using PetaPoco;
|
|
|
|
using Pingchuan.BeijingSafeguard.DAL;
|
|
using Pingchuan.BeijingSafeguard.Model;
|
|
|
|
namespace Pingchuan.BeijingSafeguard.BLL
|
|
{
|
|
public class OrgBLL
|
|
{
|
|
public static int Add(Org org)
|
|
{
|
|
org.Enabled = 1;
|
|
org.CreateTime = DateTime.Now;
|
|
return OrgDAL.Add(org);
|
|
}
|
|
|
|
public static int Update(Org org)
|
|
{
|
|
return OrgDAL.Update(org);
|
|
}
|
|
|
|
public static int Delete(int id)
|
|
{
|
|
return OrgDAL.Delete(id);
|
|
}
|
|
|
|
public static Pagination<Org> Query(int pageIndex, int pageSize)
|
|
{
|
|
return OrgDAL.Query(pageIndex, pageSize);
|
|
}
|
|
}
|
|
}
|