public int Update(DepartmentMangers dep)
        {
            try
            {
                _context.Entry(dep).State = Microsoft.EntityFrameworkCore.EntityState.Modified;

                return(SaveChange());
            }
            catch (Exception x)
            {
                return(-1);
            }
        }
        public int Insert(DepartmentMangers dep)
        {
            try
            {
                _context.Set <DepartmentMangers>().Add(dep);

                return(SaveChange());
            }
            catch (Exception x)
            {
                return(-1);
            }
        }
        public int Remove(DepartmentMangers dep)
        {
            _context.Set <DepartmentMangers>().Remove(dep);

            return(SaveChange());
        }