Catcher.Lib.Implement.UserDAL.AddUser C# (CSharp) Method

AddUser() public method

public AddUser ( UserInfo user ) : bool
user Catcher.Lib.Model.UserInfo
return bool
        public bool AddUser(UserInfo user)
        {
            using (DB db = new DB())
            {
                db.UserInfoes.Add(user);
                return db.SaveChanges() > 0;
            }
        }