public ProductModels GetDetail(string id) { try { ProductModels model = _factory.GetDetailProduct(id); if (model != null) { if (!string.IsNullOrEmpty(model.ImageURL)) { model.ImageURL = Commons.HostImage + model.ImageURL; } if (model.ListImg != null && model.ListImg.Count > 0) { model.ListImg.ForEach(o => { if (!string.IsNullOrEmpty(o.ImageURL)) { o.ImageURL = Commons.HostImage + o.ImageURL; } o.IsDelete = false; }); } return(model); } else { model = new ProductModels(); return(model); } } catch (Exception ex) { NSLog.Logger.Error("Land_Detail: ", ex); return(null); } }