public IHttpActionResult Putdispatcher(int id, dispatcher dispatcher) { if (!this.ModelState.IsValid) { return(this.BadRequest(this.ModelState)); } if (id != dispatcher.dis_Id) { return(this.BadRequest()); } this.db.Entry(dispatcher).State = EntityState.Modified; var dispatcherExists = this.db.dispatchers.Count(e => e.dis_Id == id) > 0; try { this.db.SaveChanges(); } catch (DbUpdateConcurrencyException) { if (!dispatcherExists) { return(this.NotFound()); } throw; } return(this.StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult Postdispatcher(dispatcher dispatcher) { if (!this.ModelState.IsValid) { return(this.BadRequest(this.ModelState)); } this.db.dispatchers.Add(dispatcher); this.db.SaveChanges(); return(this.CreatedAtRoute("DefaultApi", new { id = dispatcher.dis_Id }, dispatcher)); }
return(CreateMenuItem(dispatcher, featureToService.service, featureToService.header));
public void removeDispatcher(dispatcher d) { this.D -= d; }
public void addDispetcher(dispatcher d) { this.D += d; }
btClosestNotMeConvexResultCallback( me, fromA, toA, pairCache, dispatcher) { }
protected WorkFilter(WorkDispatcher dispatcher, IConfigSectionNode confNode) : base(dispatcher) => ctor(dispatcher, confNode);
protected WorkFilter(WorkDispatcher dispatcher, string name, int order) : base(dispatcher) => ctor(dispatcher, name, order);