SubmitNewOrder(DrinkLinkOrder dlOrder) { try { var customerId = GetDlCustomerId(dlOrder.DlOrderCustomerId).Result; dlOrder.DlOrderCustomerId = customerId; _context.DrinkLinkOrder.Add(dlOrder); _context.SaveChanges(); return(true); } catch (Exception e) { Log.Error(e.Message); return(false); } }
CreateNewDlContactinDB(DrinkLinkContacts dlContact) { try { _context.DrinkLinkContacts.Add(dlContact); _context.SaveChanges(); Log.Information("New user added"); return(true); } catch (Exception e) { Log.Error(e.Message); return(false); } }