示例#1
0
        public SystemCountryCodePoco GetSingleSystemCountryCode(string Id)
        {
            var logic = new SystemCountryCodeLogic(new EFGenericRepository <SystemCountryCodePoco>(false));
            SystemCountryCodePoco systemCountryCodePoco = new SystemCountryCodePoco();

            systemCountryCodePoco = logic.GetSingle(Id);
            return(systemCountryCodePoco);
        }
示例#2
0
        public IHttpActionResult GetSystemCountryCode(string systemCountryCodeId)
        {
            SystemCountryCodePoco countryCode = _logic.GetSingle(systemCountryCodeId);

            if (countryCode == null)
            {
                return(NotFound());
            }
            return(Ok(countryCode));
        }