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 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(); }