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