Ejemplo n.º 1
0
 public string UpdateStatus(int TrakingId, string Status)
 {
     try
     {
         AV_SiteIssueTrackerBL sitd  = new AV_SiteIssueTrackerBL();
         AV_SiteIssueTracker   issue = new AV_SiteIssueTracker();
         issue.TrackingId = TrakingId;
         issue.Status     = Status;
         return(sitd.Manage("UpdateStatus", issue, ViewBag.UserId).ToString());
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
Ejemplo n.º 2
0
        public ActionResult New(AV_SiteIssueTracker sit)
        {
            Response r = new Response();

            try
            {
                AV_SiteIssueTrackerBL sitd = new AV_SiteIssueTrackerBL();
                if (sitd.Manage("Insert", sit, ViewBag.UserId))
                {
                    r.Message = "success";
                    r.Status  = "success";
                }
            }
            catch (Exception ex)
            {
                r.Status  = "error";
                r.Message = ex.Message;
            }

            return(Json(r, JsonRequestBehavior.AllowGet));
        }