示例#1
0
        public ActionResult PartnerDealDetails(int?IDDeal)
        {
            IDDeal = IDDeal ?? 0;
            tDeal dealData = _dealRepository.Find((int)IDDeal);

            return(View(dealData));
        }
示例#2
0
        public ActionResult Edit(int id)
        {
            ViewBag.userData       = _userRepository.GetListByIDRole((int)Enums.enmRoles.Partner);
            ViewBag.groupData      = _groupRepository.All;
            ViewBag.categoryData   = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.DealCategory);
            ViewBag.possibleCities = _categoryRepository.GetListByIDCategoryType((int)Enums.enmCategoryTypes.City);
            tDeal currentDeal = _dealRepository.Find(id);

            return(View(currentDeal));
        }
示例#3
0
 public async Task <DealModel> GetDealById(Guid id)
 {
     return(await _repo.Find(id.ToString()));
 }