예제 #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("");
 }
예제 #2
0
 public object DispatchDelete(RequestModel obj, string name)
 {
     if (name == null)
     {
         return("Give a name");
     }
     Operation.Remove(name, obj.FindCorrectDTO());
     return("");
 }
예제 #3
0
 public object DispatchPost(RequestModel obj, string name)
 {
     return(name == null ? "Give a name" : Operation.Add(name, obj.FindCorrectDTO(), User.Identity.GetUserId()));
 }