internal IdentityError CareerDelete(int _CareerID)
        {
            IdentityError identityError;

            try
            {
                var career = new TCareer
                {
                    CareerID = _CareerID
                };
                _context._TCareer.Remove(career);
                _context.SaveChanges();
                identityError = new IdentityError {
                    Code = "Done"
                };
            }
            catch (Exception e)
            {
                identityError = new IdentityError
                {
                    Code        = "Error",
                    Description = e.Message
                };
            }
            return(identityError);
        }
        public IdentityError CareerRegistration(TCareer career)
        {
            IdentityError identityError;

            try
            {
                if (career.CareerID.Equals(0))
                {
                    _context.Add(career);
                }
                else
                {
                    _context.Update(career);
                }
                _context.SaveChanges();
                identityError = new IdentityError {
                    Code = "Done"
                };
            }
            catch (Exception e)
            {
                identityError = new IdentityError
                {
                    Code        = "Error",
                    Description = e.Message
                };
            }
            return(identityError);
        }