示例#1
0
 public async Task <ApiResult <BaseUserReportViewModel> > ProcessReport(BaseUserReportViewModel model)
 {
     return(await ApiRequestHelper.HandlApiRequest(async() =>
     {
         var userReport = await _api.ProcessReport(Mapper.Map <UserReport>(model));
         return new ApiResult <BaseUserReportViewModel>(string.Empty, true, new BaseUserReportViewModel(userReport));
     }));
 }
示例#2
0
 public async Task <ApiResult> ReportUser(BaseUserReportViewModel model)
 {
     return(await ApiRequestHelper.HandlApiRequest(async() =>
     {
         await _api.ReportUser(Mapper.Map <UserReport>(model));
         return new ApiResult(string.Empty, true);
     }));
 }
 public ReportUserViewModel(IMvxNavigationService navigationService, IUserReportService reportService)
 {
     _navigationService = navigationService;
     _reportService     = reportService;
     _userReport        = new BaseUserReportViewModel
     {
         UserReporting = Settings.ApplicationData.CurrentUserViewModel
     };
 }
 public ReportItemViewModel(IMvxNavigationService navigationService, BaseUserReportViewModel report)
 {
     _navigationService = navigationService;
     Report             = report;
 }