ASP.Net-基本CRUD-BLL

//UserInfoBLL

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebProject.DAL;
using WebProject.Model;

namespace WebProject.BLL
{
    public class UserInfoBLL
    {
        private UserInfoDAL dal = new UserInfoDAL();

        public bool UpdateUserInfo(UserInfo user)
        {
            return dal.UpdateUserInfo(user) > 0;
        }

        public UserInfo GetUserInfoById(int userId)
        {
            return dal.GetUserInfoById(userId);
        }

        public bool AddUserInfo(UserInfo user)
        {
            return dal.AddUserInfo(user) > 0;
        }
        public List<UserInfo> GetAllUserInfo()
        {
            return dal.GetAllUserInfo();
        }

        public bool DeleteUserInfo(int userId)
        {
            return dal.DeleteUserInfo(userId) > 0;
        }
    }
}
 

猜你喜欢

转载自blog.csdn.net/dxm809/article/details/88792807
BLL
今日推荐