public void SendOrder(int id) { try { var order = _orderRepo.Get(id); order.Sent = true; _orderRepo.SendOrder(order); IMailService mail = new MailService(); //TODO: //mail.SendMail(order.OrdersUser.Email,"UserName","Order skickad!","Din order är skickad!<br><br>Order: "+order.Id+"<br>Skickad: "+DateTime.Now.ToString()); } catch { //Hittade inte id } }