コード例 #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();
 }