Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public IActionResult GetFields(int id) { IEnumerable <Field> _cmsiesFields = _fieldRepository.FindBy(s => s.CmsId == id); if (_cmsiesFields != null) { //TODO : VIEW MODEL IEnumerable <FieldViewModel> _cmsiesFieldsVM = Mapper.Map <IEnumerable <FieldViewModel> >(_cmsiesFields); return(new OkObjectResult(_cmsiesFieldsVM)); } else { return(NotFound()); } }