private void ClienteCrear_Load(object sender, EventArgs e) { cbCliTipoCli.DataSource = _tipoPersonaService.GetAll(); cbCliTipoCli.DisplayMember = "Descripcion"; cbCliTipoCli.ValueMember = "Id"; cbCliTipoCli.SelectedIndex = 0; }
public async Task <JsonResult> Get() { return(Json(Mapper.Map <List <TipoPersonaDTO> >(await TipoPersonaService.GetAll()), JsonRequestBehavior.AllowGet)); }