public ActionResult Create(Requisition collection)
 {
     try
     {
         // TODO: Add insert logic here
         db.Requisition.Add(collection);
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
        public ActionResult Edit(int id, Requisition collection)
        {
            try
            {
                // TODO: Add update logic here
                Requisition obj = db.Requisition.FirstOrDefault(x => x.RequisitionId == id);

                obj.Title = collection.Title;
                obj.SmallDescription = collection.SmallDescription;
                obj.BigDescription = collection.BigDescription;
                obj.CategoryId = collection.CategoryId;
                obj.RecruiterId = collection.RecruiterId;
                obj.Address.CityId = collection.Address.CityId;
                obj.Address.Name = collection.Address.Name;
                obj.Address.CEP = collection.Address.CEP;

                db.SaveChanges();

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }