public async Task <IActionResult> Edit(int id, [Bind("ID,ExperieceDescription,WorkId,JobID")] Workexperience workexperience)
        {
            if (id != workexperience.ID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(workexperience);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!WorkexperienceExists(workexperience.ID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["JobID"] = new SelectList(_context.Job, "ID", "Company", workexperience.JobID);
            return(View(workexperience));
        }
示例#2
0
        private static void AddWorkexperience(ResumeContext context)

        {
            var works = new Workexperience[]
            {
                new Workexperience
                {
                    JobID = 1,
                    ExperieceDescription = "Provided administrative & management support to the Canadian visa processing unit."
                                           + "Provided visa application processing services; verification, guidance and collection from individuals seeking a visa as per the embassy guidelines." +
                                           "Preparing monthly and quarterly reports, assisting the supervisor with daily office operations."
                },

                new Workexperience
                {
                    JobID = 2,
                    ExperieceDescription = "Assist customers with motor vehicle needs --- walk in and/or by telephone.  " +
                                           "Communicate Effectively with Different Types of Customers." + " Review Documents for Accuracy and Compliance."
                },

                new Workexperience
                {
                    JobID = 3,
                    ExperieceDescription = "Work in a busy drugstore and gaining hands-on knowledge of retail pharmacy operations."
                                           + " Contributed to the customer service experience Educate and enlighten customers on product prices and details."
                                           + "Processed forms, orders, applications, and requests made by customers."
                },
                new Workexperience
                {
                    JobID = 4,
                    ExperieceDescription = "Worked with students aged 7-13 to improve Science, English and Math. "
                                           + " Taught computer software like, Microsoft Excel, Word, Adobe Photoshop, HTML etc. "
                                           + "Managed overall business revenue, expenses and regulatory requirements. "
                },

                new Workexperience
                {
                    JobID = 5,
                    ExperieceDescription = " Served as the educational leader of the school specifically in regard to classroom management and student behavior.   " + "Aligned the educational programs, planed and actions to the district’s vision and goals for student learning; communicates to staff and community. "

                                           + "Provided research data and direction in developing and maintaining the best possible educational programs that optimize available human and material resources while working with supervisor to assist in the effective operation of the school."

                                           + "Aligned the educational programs, planed and actions to the district’s vision and goals for student learning; communicates to staff and community.  "
                },

                new Workexperience
                {
                    JobID = 6,
                    ExperieceDescription = "Assisting the engineering department with details on work orders and its specific job functions to perform on the part as requested by the customers."
                                           + "Developed new process in Microsoft Excel for the Engineering and shipping department which created a standardized process for all the departments, eliminating confusions and miscommunications."
                                           + "Assisting the airline companies in processing work orders, maintaining high level of customer satisfaction by responding in a timely fashion via phone and email."
                },
            };

            foreach (Workexperience w in works)
            {
                context.Workexperience.Add(w);
            }
            context.SaveChanges();
        }
        public async Task <IActionResult> Create([Bind("ID,ExperieceDescription,WorkId,JobID")] Workexperience workexperience)
        {
            if (ModelState.IsValid)
            {
                _context.Add(workexperience);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["JobID"] = new SelectList(_context.Job, "ID", "Company", workexperience.JobID);
            return(View(workexperience));
        }