예제 #1
0
 public ResourceResult Delete(EditUrl url)
 {
     gigStorer.Delete(url.RecordId.EnsureStartsWith("gig/"));
     return OK(true).AsHtml();
 }
예제 #2
0
 public ResourceResult Post(EditUrl url, ManageViewModel input)
 {
     var gig = gigStorer.Save(input.AsGig());
     input.Id = gig.Id;
     return OK(input).AsHtml();
 }
예제 #3
0
 public ResourceResult Get(EditUrl url)
 {
     return OK(new ManageViewModel(gigs.Get(url.RecordId.EnsureStartsWith("gig/")), url.RecordId.EnsureStartsWith("gig/"))).AsHtml();
 }