public static List <int> AddGroupRestriction(IisGroupRestriction groupRestriction) { var restrictions = ConfigDb.IisGroupRestrictionAdd( groupRestriction.Restriction.Type, groupRestriction.Restriction.StartMoment, groupRestriction.Restriction.StopMoment, groupRestriction.Restriction.Rule, groupRestriction.Group); if (restrictions == null) { return(new List <int>()); } return((from DataRow row in restrictions.Rows select(int) row["ID"]).ToList()); }
public HttpResponseMessage GroupRestrictionAdd([FromBody] IisGroupRestriction groupRestriction) { Logger.Log.Trace("GroupRestrictionAdd called."); return(Request.CreateResponse(HttpStatusCode.OK, IisConfigurator.AddGroupRestriction(groupRestriction))); }