public MainPage() { InitializeComponent(); NetworkApi api = RestService.For <NetworkApi>(AppConstants.BASE_URL); RegisterModel model = new RegisterModel(); model.email = "*****@*****.**"; model.password = "******"; model.confirm_password = "******"; model.first_name = "Dummy Name"; model.last_name = "Last Name"; model.gender = "M"; model.phone_no = 123; try { //CustBusinessLogin custBusinessLogin = new CustBusinessLogin(); CustService service = new CustService(); var DoIVal = service.GetCustomerName(); //var DoIVal = custBusinessLogin.GetCustName(); /*var regResponse = api.Register(model); * regResponse.ContinueWith(post => { * if (post.IsCompleted) * { * var demo = post.Result; * } * else if (post.IsFaulted) * { * Debug.WriteLine("Error occured ->" + post.Status); * } * else * { * Debug.WriteLine("Cancelled"); * } * }, TaskScheduler.FromCurrentSynchronizationContext()).ConfigureAwait(false);*/ } catch (Exception ex) { Debug.WriteLine("Error--->>" + ex.StackTrace); } }
public CustomerController(ItemService itemService, CustService custService) { _itemServ = itemService; _custService = custService; }
public AccountController(CustService cust, SystemUserService user) { _custService = cust; _userService = user; }
public DeliveryController(ItemService items, CustService cust) { itemService = items; custService = cust; }
public AdminController(CustomerListService _customerListService, ItemService item, CustService _custSerivce) { customerListService = _customerListService; itemService = item; custService = _custSerivce; }
public CustomerController(ItemService itemService, CustService custService, ConsolidatedService consolidatedService) { _itemServ = itemService; _custService = custService; _consolidate = consolidatedService; }