public ResourceResult Post(StolenGearUrl url, StolenGearViewModel input) { return OK(new StolenGearViewModel(storeGear.Save(input.AsGear(), input.Image1, input.Image2, input.Image3, input.Image4, input.Image5))).AsHtml(); }
public ResourceResult Delete(StolenGearUrl url) { storeGear.Delete(url.Id.EnsureStartsWith("stolengear/")); return OK(true).AsJson(); }
public ResourceResult Get(StolenGearUrl url) { return OK(new StolenGearViewModel(gear.Get(url.Id.EnsureStartsWith("stolengear/")))).AsHtml(); }