public GetAccountDetailsOutputDto GetAccountDetails(GetAccountDetailsInputDto input) { var account = _accountRepository.Get(input.Id); return Mapper.Map<GetAccountDetailsOutputDto>(account); ////Used AutoMapper to automatically convert List<Contact> to List<ContactDto>. //GetContactsOutput contactslist = _contactappservice.GetContactsWithAccount(new Jobs.Dtos.GetJobsInput()); //GetActivitiesOutputDto activitylist = _activityappservice.GetActivities(new Activities.Dtos.GetActivitiesInputDto()); //return new GetDashboardOutputDto //{ // UserFullName = returnUserName, // Jobs = jobslist, // Activities = activitylist, // JobCount = jobslist.Jobs.Count(), // ActivityCount = activitylist.Activities.Count() //}; }
// GET: Jobs/Details/5 public ActionResult Details(int? id) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } GetAccountDetailsInputDto getAccountDetailsInput = new GetAccountDetailsInputDto(); getAccountDetailsInput.Id = (long)id; //_svcAccount. //if (job == null) //{ // return HttpNotFound(); //} //_svcAccount. return View(_svcAccount.GetAccountDetails(getAccountDetailsInput)); }