//Creates a new Outlet public int CreateOutlet(OutletEntity newOutlet) { return _pigdealRepo.CreateOutLet(new Outlet { Description = newOutlet.Description, ContactNumber = newOutlet.ContactNumber, ContactPerson = newOutlet.ContactPerson, LoginEmail = newOutlet.LoginEmail, OutletName = newOutlet.OutletName, Password = newOutlet.Password, }); }
public string CreateOutlet(OutletEntity outlet) { try { _outletManager.CreateOutlet(outlet); return "success"; } catch (Exception) { return "failed"; } }