public ActionResult EmailTranslationDetail(long id) { ViewBag.Languages = BaseService.GetBaseDictionaries(ValueTypeEnum.Language); ViewBag.CurrentManager = CurrentManager; ViewBag.Intentions = BaseService.GetIntentions(CurrentManager.ParentId != 0 ? CurrentManager.ParentId : CurrentManager.Id); EmailTranslation emailTranslation = TranslationService.GeEmailTranslationById(id); PageTranslationFollow translationFollow = new PageTranslationFollow(emailTranslation, TranslationService.GetEmailFollows(id)); TranslationService.ChangeEmailTranslationStatus(emailTranslation, CurrentManager); return(View(translationFollow)); }
public ActionResult EnquiryDetail(long id) { Enquiry enquiry = EnquiryService.GetEnquiryById(id); EnquiryService.ChangeEnquiryStatus(CurrentManager, enquiry); EmailTranslation emailTranslation = TranslationService.GeEmailTranslationByEnquiryId(id); PageEnquiry pageEnquiry = new PageEnquiry(); pageEnquiry.Enquiry = enquiry; pageEnquiry.EmailTranslation = emailTranslation; if (emailTranslation != null) { pageEnquiry.EnquiryTransFollows = TranslationService.GetEmailFollows(emailTranslation.Id); } ViewBag.CurrentManager = CurrentManager; ViewBag.Intentions = BaseService.GetIntentions(CurrentManager.ParentId != 0 ? CurrentManager.ParentId : CurrentManager.Id); ViewBag.UserDefineds = BaseService.GetUserDefineds(CurrentManager.ParentId != 0 ? CurrentManager.ParentId : CurrentManager.Id); ViewBag.Languages = BaseService.GetBaseDictionaries(ValueTypeEnum.Language); return(View(pageEnquiry)); }