Example #1
0
        public void Create(RestaurantUserCreateModel entity)
        {
            RestaurantUser restaurantUser = new RestaurantUser
            {
                Id        = new Guid(),
                User      = entity.User,
                Password  = entity.Password,
                Email     = entity.Email,
                Privilege = RestaurantUser.PrivilegeValues.None,
            };

            _restaurantUserRepository.Create(restaurantUser);
            _restaurantUserRepository.Save();
        }
Example #2
0
 public IActionResult Create([FromBody] RestaurantUserCreateModel User)
 {
     _restaurantUserLogic.Create(User);
     return(Ok());
 }