public IHttpActionResult GetHouseMy() { //var m = Request.GetQueryString("m"); var u = Request.GetQueryString("u"); var service = new HouseBrokerRefService(); var r = service.GetHouseByBrokerNo(u); return(Ok(r)); }
public IHttpActionResult GetIsCollect() { var u = Request.GetQueryString("u"); //经纪人编号 var h = Request.GetQueryString("h"); //房源编号 var service = new HouseBrokerRefService(); var r = service.IsCollect(u, h); return(Ok(new Dictionary <string, object> { { "HasError", r.HasError }, { "Errors", r.Errors.Select(m => m.Message).ToList() }, { "Result", r.Value } })); }