public Result_List <Result_Model <Result_IWantToBuy> > Get_PreNext_ById_Web(long Id) { Result_List <Result_Model <Result_IWantToBuy> > res = new Result_List <Result_Model <Result_IWantToBuy> >() { Msg = new Result_Msg() { IsSuccess = true }, List = new List <Result_Model <Result_IWantToBuy> >() }; try { var listHash = hashSet.Get_DictionariesList(); Result_List <Result_Model <IWantToBuy> > resIWantToBuy = iWantToBuyService.Get_PreNext_ById_Web(Id); res.Msg = resIWantToBuy.Msg; if (resIWantToBuy != null && resIWantToBuy.Msg.IsSuccess) { foreach (var item in resIWantToBuy.List) { if (item.Msg.IsSuccess) { res.List.Add(new Result_Model <Result_IWantToBuy>() { Model = new Result_IWantToBuy() { Id = item.Model.Id, //EndDate = item.Model.EndDate.ToString("yyyy-MM-dd HH;mm"), //CreateDate = item.Model.CreateDate.ToString("yyyy-MM-dd HH;mm"), //StartDate = item.Model.StartDate.ToString("yyyy-MM-dd HH;mm"), //UpdateDate = item.Model.UpdateDate.ToString("yyyy-MM-dd HH;mm") //UserId = item.Model.UserId, //LanguageType = item.Model.LanguageType == 1 ? listHash.Where(y => y.DictionaryTypeId == 10 && y.DValue == item.Model.LanguageType.ToString()).FirstOrDefault().DKey : listHash.Where(y => y.DictionaryTypeId == 10 && y.DValue == item.Model.LanguageType.ToString()).FirstOrDefault().Remarks, }, Msg = item.Msg }); } else { res.List.Add(new Result_Model <Result_IWantToBuy>() { Model = new Result_IWantToBuy(), Msg = item.Msg }); } } } else { res.Msg = resIWantToBuy.Msg; } } catch (Exception ex) { res.Msg = new Result_Msg() { IsSuccess = false, Message = ex.Message }; } return(res); }