public DataResult UpdateOrder(OrderViewModel Order)
 {
     try
      {
          OrderManager mng = new OrderManager();
          mng.UpdateOrder(Converter.ToModel(Order));
          return new DataResult() { Sucess = true };
      }
      catch(Exception ex)
      {
          List<string> messages = new List<string>();
          messages.Add(ex.Message);
          return new DataResult() { Sucess = false , Messages=messages };
      }
 }
 public DataResult DeleteOrder(int OrderID)
 {
     try
      {
          OrderManager mng = new OrderManager();
          mng.DeleteOrder(OrderID);
          return new DataResult() { Sucess = true };
      }
      catch (Exception ex)
      {
          List<string> messages = new List<string>();
          messages.Add(ex.Message);
          return new DataResult() { Sucess = false, Messages = messages };
      }
 }
 public List<OrderViewModel> GetFilteredData(OrderViewModel Order)
 {
     OrderManager mng = new OrderManager();
      return Converter.ToViewModel(mng.GetFilteredData(Order.Name,Order.Price));
 }
 public List<OrderViewModel> GetAllData()
 {
     OrderManager mng = new OrderManager();
      return Converter.ToViewModel(mng.GetOrders());
 }