public RoleMenu(Context.RoleMenus dbitem) { IdMenu = dbitem.IdMenu; StrMenuModul = dbitem.Menu == null ? "" : dbitem.Menu.Modul; IsCreate = dbitem.IsCreate; IsRead = dbitem.IsRead; IsUpdate = dbitem.IsUpdate; IsDelete = dbitem.IsDelete; IsPrint = dbitem.IsPrint; IsProses = dbitem.IsProses; }
public RoleMenu(Context.RoleMenus dbitem, int role_id) { IdMenu = dbitem.IdMenu; StrMenu = dbitem.Menu.MenuName; StrMenuModul = dbitem.Menu.Modul; IsCreate = dbitem.IsCreate; IsRead = dbitem.IsRead; IsUpdate = dbitem.IsUpdate; IsDelete = dbitem.IsDelete; IsPrint = dbitem.IsPrint; IsProses = dbitem.IsProses; }
public Context.RoleMenus setDb(Context.RoleMenus dbitem) { dbitem.Id = Id; dbitem.IdMenu = IdMenu.Value; dbitem.IsCreate = IsCreate; dbitem.IsRead = IsRead; dbitem.IsUpdate = IsUpdate; dbitem.IsDelete = IsDelete; dbitem.IsPrint = IsPrint; dbitem.IsProses = IsProses; return(dbitem); }