private async void Cadastrar() { var lista = new Listas(); lista.Nome = Nome; lista.Data = Data; ListasService.Insert(lista); await App.Current.MainPage.Navigation.PushAsync(new ListPage()); }
public ActionResult GetAllListasRel(int page, int start, int limit, string sort, string dir, long _dc, string callback, string condicion = null, string codigo = null) { var filter = new PagingInfo { page = page, start = start, limit = limit, sort = sort, dir = dir, _dc = _dc, callback = callback, search = condicion }; var service = new ListasService(); var jsondata = service.GetAllListasRel(filter, codigo); JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer(); string callback1 = callback + "(" + javaScriptSerializer.Serialize(jsondata) + ");"; return(JavaScript(callback1)); }
public ImagemBandaTagHelper(ListasService listaService) { _listaService = listaService; }
public ListasController() { service = new ListasService(); }
public ListViewModel() { Listas = new ObservableCollection <Listas>(ListasService.ListAll()); }
public ListasController() { service = new ListasService(); }