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));
예제 #4
0
 public void removeDispatcher(dispatcher d)
 {
     this.D -= d;
 }
예제 #5
0
 public void addDispetcher(dispatcher d)
 {
     this.D += d;
 }
예제 #6
0
                          btClosestNotMeConvexResultCallback( me, fromA, toA, pairCache, dispatcher)
	{
	}
예제 #7
0
 protected WorkFilter(WorkDispatcher dispatcher, IConfigSectionNode confNode) : base(dispatcher) => ctor(dispatcher, confNode);
예제 #8
0
 protected WorkFilter(WorkDispatcher dispatcher, string name, int order) : base(dispatcher) => ctor(dispatcher, name, order);