public async Task <ActionResult> Income(string name)
        {
            string message = "";
            int    val     = db.TotalServicePointIncome(name);

            message = "Przychód punktu wynosi: " + val.ToString();
            return(RedirectToAction("Details", new { id = name, name = message }));
        }
예제 #2
0
 public async Task <ActionResult> TotalServicePointIncome(string name)
 {
     try
     {
         int result = db.TotalServicePointIncome(name);
         return(RedirectToAction("Index", new { message = "Dochód punktu usług to: " + result.ToString(), isGood = true }));
     }
     catch (Exception e)
     {
         return(RedirectToAction("Index", new { message = "Wystąpił błąd, spróbuj ponownie." }));
     };
 }