Example #1
0
 public object DispatchPut(RequestModel obj, string name)
 {
     if (name == null)
     {
         return("Give a name");
     }
     Operation.Modify(name, obj.FindCorrectDTO(), User.Identity.GetUserId());
     return("");
 }
Example #2
0
 public object DispatchDelete(RequestModel obj, string name)
 {
     if (name == null)
     {
         return("Give a name");
     }
     Operation.Remove(name, obj.FindCorrectDTO());
     return("");
 }
Example #3
0
 public object DispatchPost(RequestModel obj, string name)
 {
     return(name == null ? "Give a name" : Operation.Add(name, obj.FindCorrectDTO(), User.Identity.GetUserId()));
 }