public Models.User Create(string name, string paasword, string email, bool enabled) { if ((DBUser.name == name).Count <DBUser>(DB) > 0) { return(null); } DBUser user = new DBUser(); user.Name = name; user.Password = paasword; user.Email = email; user.Enabled = enabled; user.Save(DB); return(user.MemberCopyTo <Models.User>()); }