public bool visita() { bool resultado = false; VisitaBE obj = new VisitaBE(); VisitaBL bl = new VisitaBL(); //FALTA: utilizar usuario obj.UsuarioCreacion = User.Identity.Name; resultado = bl.Insert(connstring, obj); return(resultado); }
public void ReporteUsoUsuarioEmpresa(int IdEmpresa) { VisitaBL bl = new VisitaBL(); ReporteBE reporte = new ReporteBE(); reporte = bl.ReporteUsoUsuarioEmpresa(connstring, IdEmpresa); // Return JSON data JavaScriptSerializer js = new JavaScriptSerializer(); string strJSON = js.Serialize(reporte); Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Flush(); Context.Response.Write(strJSON); }