// PUT api/NotAllowedViolationsWorkflow/5
        public IHttpActionResult PutNotAllowedViolationsWorkflow(int id, NotAllowedViolationsWorkflow notallowedviolationsworkflow)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != notallowedviolationsworkflow.ID)
            {
                return(BadRequest());
            }

            db.Entry(notallowedviolationsworkflow).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!NotAllowedViolationsWorkflowExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public IHttpActionResult GetNotAllowedViolationsWorkflow(int id)
        {
            NotAllowedViolationsWorkflow notallowedviolationsworkflow = db.NotAllowedViolationsWorkflows.Find(id);

            if (notallowedviolationsworkflow == null)
            {
                return(NotFound());
            }

            return(Ok(notallowedviolationsworkflow));
        }
        public IHttpActionResult PostNotAllowedViolationsWorkflow(NotAllowedViolationsWorkflow notallowedviolationsworkflow)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.NotAllowedViolationsWorkflows.Add(notallowedviolationsworkflow);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = notallowedviolationsworkflow.ID }, notallowedviolationsworkflow));
        }
        public IHttpActionResult DeleteNotAllowedViolationsWorkflow(int id)
        {
            NotAllowedViolationsWorkflow notallowedviolationsworkflow = db.NotAllowedViolationsWorkflows.Find(id);

            if (notallowedviolationsworkflow == null)
            {
                return(NotFound());
            }

            db.NotAllowedViolationsWorkflows.Remove(notallowedviolationsworkflow);
            db.SaveChanges();

            return(Ok(notallowedviolationsworkflow));
        }