public void Insert(string RoleName, string Description) { var item = new LRole(); item.RoleName = RoleName; item.Description = Description; item.Save(UserName); }
public void Update(int RoleId, string RoleName, string Description) { var item = new LRole(); item.MarkOld(); item.IsLoaded = true; item.RoleId = RoleId; item.RoleName = RoleName; item.Description = Description; item.Save(UserName); }
public bool Destroy(object RoleId) { return(LRole.Destroy(RoleId) == 1); }
public bool Delete(object RoleId) { return(LRole.Delete(RoleId) == 1); }