コード例 #1
0
        // 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));
        }
コード例 #2
0
        // 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)));
        }