Exemplo n.º 1
0
 public ActionResult <RestrictionResource> Create(RestrictionResource resource)
 {
     return(Created(_restrictionService.Add(resource.ToModel()).Id));
 }
Exemplo n.º 2
0
 private int CreateRestriction(RestrictionResource resource)
 {
     return(_restrictionService.Add(resource.ToModel()).Id);
 }
Exemplo n.º 3
0
 private Int32 Create(RestrictionResource resource)
 {
     return(_restrictionService.Add(resource.InjectTo <Restriction>()).Id);
 }