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));
        }
Ejemplo n.º 3
0
 return(CreateMenuItem(dispatcher, featureToService.service, featureToService.header));
Ejemplo n.º 4
0
 public void removeDispatcher(dispatcher d)
 {
     this.D -= d;
 }
Ejemplo n.º 5
0
 public void addDispetcher(dispatcher d)
 {
     this.D += d;
 }
Ejemplo n.º 6
0
                          btClosestNotMeConvexResultCallback( me, fromA, toA, pairCache, dispatcher)
	{
	}
Ejemplo n.º 7
0
 protected WorkFilter(WorkDispatcher dispatcher, IConfigSectionNode confNode) : base(dispatcher) => ctor(dispatcher, confNode);
Ejemplo n.º 8
0
 protected WorkFilter(WorkDispatcher dispatcher, string name, int order) : base(dispatcher) => ctor(dispatcher, name, order);