// GET api/values
        public IEnumerable <Department> GetDepartments()
        {
            commonInternal = new CommonControllerInternal();
            _db            = commonInternal.GetConnection(_db);
            var depart = _db.Departments.ToList();

            return(depart);
        }
        public User_Profile PutUser([FromBody] User_Profile model)
        {
            commonInternal = new CommonControllerInternal();
            _db            = commonInternal.GetConnection(_db);
            var user = _db.User_Profile.FirstOrDefault(u => u.UserName.Equals(model.UserName));

            if (user == null || (model.Password != user.Password))
            {
                return(null);
            }
            return(user);
        }