public IHttpActionResult Detail(string nationalId) { var detail = ContractLoader.LoadContractDetail(nationalId, Access.GetOpenConnection()); return(Ok(detail)); }
public string Search(string nationalId) { var hasIndividual = ContractLoader.HasIndividual(nationalId, Access.GetOpenConnection()); return(hasIndividual ? "single hit" : "no hit"); }