public IActionResult EditSkillSeve(Skill Skills)
 {
     Skills.Date_Update = DateTime.Now;
     _context.Update(Skills);
     _context.SaveChanges();
     return(Json(Skills));
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> UpdateFreelance(Freelance Freelance)
        {
            var _Freelance = _context.Freelance.SingleOrDefault(e => e.Freelance_ID == Freelance.Freelance_ID);

            _Freelance.FullName        = Freelance.FullName;
            _Freelance.Email           = Freelance.Email;
            _Freelance.TelephoneNumber = Freelance.TelephoneNumber;
            _Freelance.Facebook        = Freelance.Facebook;
            _Freelance.Line            = Freelance.Line;
            _Freelance.Address         = Freelance.Address;
            _Freelance.ImgName         = Freelance.ImgName;
            _Freelance.Date_Update     = DateTime.Now;
            _context.Update(_Freelance);
            await _context.SaveChangesAsync();

            return(Json(new { result = _Freelance }));
        }
Ejemplo n.º 3
0
        public IActionResult NotificationChRead()
        {
            var Employer_ID  = HttpContext.Session.GetInt32("Employer_ID");
            var Notification = _context.Notification.Where(n => n.Employer_ID == Employer_ID && n.NotificationCode != "03" && n.NotificationCode != "04").ToList();

            foreach (var Notifications in Notification)
            {
                Notifications.ReadStatus = true;
                _context.Update(Notifications);
                _context.SaveChanges();
            }
            return(Json("OK"));
        }
        public async Task <IActionResult> UpdateCompany(Company Company)
        {
            var _Company = _context.Company.SingleOrDefault(e => e.Company_ID == Company.Company_ID);

            _Company.Company_Name    = Company.Company_Name;
            _Company.Email           = Company.Email;
            _Company.Company_Tel     = Company.Company_Tel;
            _Company.Fax             = Company.Fax;
            _Company.Company_TaxID   = Company.Company_TaxID;
            _Company.Facebook        = Company.Facebook;
            _Company.Line            = Company.Line;
            _Company.Company_Address = Company.Company_Address;
            _Company.imgName         = Company.imgName;
            _Company.Date_Update     = DateTime.Now;
            _context.Update(_Company);
            await _context.SaveChangesAsync();

            return(Json(new { Result = Company }));
        }