Пример #1
0
 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();
 }
Пример #2
0
 public ResourceResult Delete(StolenGearUrl url)
 {
     storeGear.Delete(url.Id.EnsureStartsWith("stolengear/"));
     return OK(true).AsJson();
 }
Пример #3
0
 public ResourceResult Get(StolenGearUrl url)
 {
     return OK(new StolenGearViewModel(gear.Get(url.Id.EnsureStartsWith("stolengear/")))).AsHtml();
 }