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