Beispiel #1
0
 public object Put(WorskpaceRequest request)
 {
     if (!string.IsNullOrEmpty(request.Enterprise) && request.Enterprise.Length > _enterpriseMaxValue)
     {
         return new HttpResult("Enteprise too long", HttpStatusCode.BadRequest);
     }
     return new HttpResult("OK", HttpStatusCode.OK);
 }
Beispiel #2
0
 public object Get(WorskpaceRequest request)
 {
     if (request.WorkspaceName == "w1")
     {
        return new HttpResult("workspace1", HttpStatusCode.OK);
     }
     return new HttpResult("Not found", HttpStatusCode.NotFound);
 }