//public void UpdateService(string  serviceName, int idService)
        //{
        //    var service = new Priorities(serviceName, idService);
        //    PriorityDataServices.Instance.Update(ConvertPriority(service));
        //}

        public void DeletePriority(int idPriority)
        {
            var priority = new Priorities(idPriority);

            // PriorityDataServices.Instance.DeletePriority(ConvertPriority(priority));
            PriorityDataServices.Instance.DeletePriority(priority.MapTo(new Priority()));
        }
        public void InsertPriority(string typePriority)
        {
            var priority = new Priorities(typePriority);

            //  PriorityDataServices.Instance.InsertPriority(ConvertPriority(priority));
            PriorityDataServices.Instance.InsertPriority(priority.MapTo(new Priority()));
        }