// GET: freelancers/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } freelancer freelancer = db.freelancer.Find(id); //FreelancerProfileOperations fpop = new FreelancerProfileOperations(); freelancer.FreelancerProfileResume = fpop.GetFreelancerProfileById(id); if (freelancer == null) { return(HttpNotFound()); } return(View(freelancer)); }
// GET: FreelancerProfiles public ActionResult Index() { int id = 3; freelancer freelancer = db.freelancer.Find(id); FreelancerProfileOperations fpop = new FreelancerProfileOperations(); //return View(fpop.GetProfileDetails()); //return View(fpop.GetProfile(id)); return(View(fpop.GetFreelancerProfileById(id))); }