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("@")];
public async Task <LocalParksUserModel> GetUserAsync(string name) { var user = await _parkRepository.GetLocalParksUserByUsernameAsync(name); return(_mapper.Map <LocalParksUserModel>(user)); }