// // GET: /Convocatoria/Create public void CreateAsync() { AsyncManager.OutstandingOperations.Increment(); var front = new FrontOffice.FrontOfficeServiceClient(); front.ObtenerCategoriasTematicasCompleted += (s, e) => { AsyncManager.Parameters["cat"] = e.Result; AsyncManager.OutstandingOperations.Decrement(); }; front.ObtenerCategoriasTematicasAsync(); }
public void EditAsync() { String membership = (String)Session["emailUs"]; int idmov = (int)Session["idMov"]; AsyncManager.OutstandingOperations.Increment(2); var front = new FrontOffice.FrontOfficeServiceClient(); front.ObtenerCategoriasTematicasCompleted += (s, e) => { AsyncManager.Parameters["categs"] = e.Result; AsyncManager.OutstandingOperations.Decrement(); }; front.ObtenerCategoriasTematicasAsync(); front.ObtenerEspecificacionUsuarioXMembershipCompleted += (s, e) => { AsyncManager.Parameters["espus"] = e.Result; AsyncManager.OutstandingOperations.Decrement(); }; front.ObtenerEspecificacionUsuarioXMembershipAsync(membership, idmov); }