Exemplo n.º 1
0
 public ResourceResult Post(AddRepeatingGigUrl url, RepeatingGigViewModel input)
 {
     var repeatingGig = repeatingGigs.SaveRepeating(input.AsRepeatingGig());
     input.Id = repeatingGig.Id;
     return SeeOther(new HomeUrl()).AsHtml();
 }
Exemplo n.º 2
0
 public ResourceResult Post(RepeatingGigUrl url, RepeatingGigViewModel input)
 {
     
     repeatingGigs.SaveRepeating(input.AsRepeatingGig());
     return OK(input).AsHtml();
 }