Ejemplo n.º 1
0
 public void ReportIssues(string gpslat, string gpslng, string imageurl, string name, string message, string priority)
 {
     try
     {
         IssueBL issueBl = new IssueBL();
         Context.Response.Write(issueBl.AddIssue(gpslat, gpslng, imageurl, name, priority, message));
     }
     catch (Exception ex) {
         Context.Response.Write(GetExceptionMessage(ex));
     }
 }
Ejemplo n.º 2
0
 public void GetAllIssues()
 {
     try
     {
         IssueBL issueBl = new IssueBL();
         Context.Response.Write(issueBl.GetAllIssues());
     }
     catch (Exception ex)
     {
         Context.Response.Write(GetExceptionMessage(ex));
     }
 }
Ejemplo n.º 3
0
 public void UpdateIssues(string uid, string gpslat, string gpslng, string imageurl, string status)
 {
     try
     {
         IssueBL issueBl = new IssueBL();
         if (issueBl.UpdateIssueStatus(uid, gpslat, gpslng, imageurl, status))
         {
             Context.Response.Write("1");
         }
         else
         {
             Context.Response.Write("0");
         }
     }
     catch (Exception ex)
     {
         Context.Response.Write(GetExceptionMessage(ex));
     }
 }