public ActionResult ResultadoContacto(FiltroContacto filtro) { bool permiteAcceso = ObtenerPermisos(); if (permiteAcceso) { var servContacto = new ContactoService(); var list = servContacto.GetContactos(filtro); return PartialView(list); } return new EmptyResult(); }
public OperationResult Put([FromBody] ContactoModel contacto) { return(ContactoService.Update(contacto)); }
public OperationResult Delete(Guid id) { return(ContactoService.Delete(id)); }
public ResponseContactoModel Get(int numRegistros, int numPagina, string filter) { return(ContactoService.Get(numRegistros, numPagina, filter)); }
//constructor public ContactoController() { db = new DBContextADO(); _repo = new ContactoService(); }
public void MarcarComoLeidos(IEnumerable<int> lst) { var servContacto = new ContactoService(); servContacto.MarcarComoLeidos(lst); }
public void Enviar(modContacto model) { var servContacto = new ContactoService(); model.Leido = false; servContacto.AddContacto(model); }