public TypeExigence GetTypeExigenceById(int idTypeExigence) { TypeExigence type = null; foreach (DataSet.TypeExigenceRow typeExigence in new TypeExigenceTableAdapter().GetTypeExigenceById(idTypeExigence)) { type = FromDBToBean(typeExigence); } return(type); }
public IActionResult Get(int id) { IActionResult result; TypeExigence TypeExigence = TypeExigenceRepository.GetById(id); if (TypeExigence != null) { result = Ok(TypeExigence); } else { result = NotFound(new { Message = "TypeExigence inexistante!" }); } return(result); }
private TypeExigence FromDBToBean(DataSet.TypeExigenceRow p_row) { TypeExigence v_salle = new TypeExigence(p_row.id, p_row.label); return(v_salle); }