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