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