public ActionResult PartnerDealDetails(int?IDDeal) { IDDeal = IDDeal ?? 0; tDeal dealData = _dealRepository.Find((int)IDDeal); return(View(dealData)); }
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)); }
public async Task <DealModel> GetDealById(Guid id) { return(await _repo.Find(id.ToString())); }