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 List<OrderViewModel> GetFilteredData(OrderViewModel Order)
 {
     OrderManager mng = new OrderManager();
      return Converter.ToViewModel(mng.GetFilteredData(Order.Name,Order.Price));
 }
 public static Order ToModel(OrderViewModel VM)
 {
     return new Order() { ID = VM.ID, Price = VM.Price, Name = VM.Name };
 }