public IHttpActionResult CheckStore(string code) { var bll = new StoreBasicInfo(); string storeName = ""; var result = bll.CheckStore(code, out storeName); return(Ok(new { StoreName = storeName, StoreValid = result })); }