예제 #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 Post(AddStolenGearUrl url, StolenGearViewModel input)
 {
     var id = storeGear.Save(input.AsGear(), input.Image1, input.Image2, input.Image3, input.Image4, input.Image5).Id;
     return OK(new StolenGearUrl(id)).AsHtml();
 }