public ActionResult Pull(int id) { try { var model = db.GitSetup.FirstOrDefault(i => i.Id == id); string credential = new Crypt32().Decrypt(model.Crendential); var status = new GitSharpClient(model.RepositoryPath).Pull(credential.Split('|')[0], credential.Split('|')[1]); TempData["Success"] = "Git pull command process with success. " + status; } catch (Exception e) { TempData["ErrorMessage"] = e.Message; } return(Redirect(Request.UrlReferrer.PathAndQuery)); }