Exemplo n.º 1
0
 public ActionResult Edit(ProjectModel project)
 {
     if (ModelState.IsValid)
     {
         BCBSClient client = new BCBSClient();
         long Id = 0;
         Id = client.UpdateProjectById(project.Id, project.Name, project.ChargeCode, project.HighLevelBudget.ToString(), project.Status, project.Description, project.RC, project.GLAccount);
         if (Id > 0)
         {
             TempData["Message"] = "Project Updated successfully..!";
         }
         else
         {
             TempData["Error"] = "Project Update failed..!";
         }
         ModelState.Clear();
         return RedirectToAction("Index", "Project");
     }
     else
     {
         return View(project);
     }
 }