Beispiel #1
0
        public NamedString Clone()
        {
            NamedString namedString = new NamedString();

            namedString.Assign(this);

            return namedString;
        }
Beispiel #2
0
 public IActionResult OnGet(int id, int pid)
 {
     if (id > 0)
     {
         Input = _stringManager.Find(id);
         if (Input == null)
         {
             return(NotFound());
         }
     }
     else
     {
         Input = new NamedString {
             ParentId = pid
         }
     };
     return(Page());
 }
Beispiel #3
0
 public void Assign(NamedString namedString)
 {
     name = namedString.name;
     value = namedString.value;
 }
Beispiel #4
0
 public void OnGet(int id = 0)
 {
     Current = _stringManager.Find(id);
 }