public GetContractDetailsOutputDto GetContractDetails(GetContractDetailsInputDto input) { var contract = _contractRepository.Get(input.Id); return Mapper.Map<GetContractDetailsOutputDto>(contract); }
// GET: Jobs/Details/5 public ActionResult Details(int? id) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } GetContractDetailsInputDto getContractDetailsInput = new GetContractDetailsInputDto(); getContractDetailsInput.Id = (long)id; //_svcAccount. //if (job == null) //{ // return HttpNotFound(); //} //_svcAccount. return View(_svcContract.GetContractDetails(getContractDetailsInput)); }