public Workers GetWorker(int id)
 {
     return(WorkerBl.getWorkerByID(id));
 }
 public void  deleteWorker(int id)
 {
     WorkerBl.deleteWorker(id);
 }
 public List <Workers> GatAllWorker()
 {
     return(WorkerBl.getAllWorker());
 }
        //[System.Web.Http.Route("{id}"),("{password}")]
        //[EnableCors(origins: "http://localhost:4200/", headers: "*", methods: "*")]
        public HttpResponseMessage Login(int userID, string password)
        {
            var res = WorkerBl.GetUser(userID, password);

            return(Request.CreateResponse(HttpStatusCode.OK, res));
        }