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(); }
public IActionResult Create([FromBody] RestaurantUserCreateModel User) { _restaurantUserLogic.Create(User); return(Ok()); }