Exemplo n.º 1
0
        public async Task <ParkEventModel> AddNewParkEventAsync(ParkEventModel model, string username, bool hideUsername = true)
        {
            var user = await _parkRepository.GetLocalParksUserByUsernameAsync(username);

            var email = model.OrganiserEmail.ToLower();

            email = email[..email.IndexOf("@")];
Exemplo n.º 2
0
        public async Task <LocalParksUserModel> GetUserAsync(string name)
        {
            var user = await _parkRepository.GetLocalParksUserByUsernameAsync(name);

            return(_mapper.Map <LocalParksUserModel>(user));
        }