//
        // GET: /AsignacionBuckets/Delete/5

        public ActionResult Delete(int id = 0)
        {
            ManagerUser mang = new ManagerUser();
            //AsignacionBuckets asignacionbuckets = new AsignacionBuckets();

            var asignacionbuckets = mang.GetAsignacionBuckets(id);

            return(View(asignacionbuckets.FirstOrDefault()));
        }
        //
        // GET: /AsignacionBuckets/Edit/5

        public ActionResult Edit(int?id = null)
        {
            //AsignacionBuckets asignacionbuckets = db.AsignacionBuckets.Find(id);
            //if (asignacionbuckets == null)
            //{
            //    return HttpNotFound();
            //}
            ManagerUser mang = new ManagerUser();
            //AsignacionBuckets asignacionbuckets = new AsignacionBuckets();

            var asignacionbuckets = mang.GetAsignacionBuckets(id);

            return(View(asignacionbuckets.FirstOrDefault()));
        }
        //
        // GET: /AsignacionBuckets/Create

        public ActionResult Create()
        {
            ManagerUser       mang = new ManagerUser();
            AsignacionBuckets asignacionbuckets = new AsignacionBuckets();

            asignacionbuckets.listadoBucket = new List <AsignacionBuckets>();

            var ret = mang.GetAsignacionBuckets();

            if (ret.Any())
            {
                asignacionbuckets.listadoBucket = ret;
            }

            return(View(asignacionbuckets));
        }