public SystemCountryCodePoco GetSingleSystemCountryCode(string Id) { var logic = new SystemCountryCodeLogic(new EFGenericRepository <SystemCountryCodePoco>(false)); SystemCountryCodePoco systemCountryCodePoco = new SystemCountryCodePoco(); systemCountryCodePoco = logic.GetSingle(Id); return(systemCountryCodePoco); }
public IHttpActionResult GetSystemCountryCode(string systemCountryCodeId) { SystemCountryCodePoco countryCode = _logic.GetSingle(systemCountryCodeId); if (countryCode == null) { return(NotFound()); } return(Ok(countryCode)); }