public async Task <IActionResult> GetAllContacts()
        {
            try
            {
                var dto = await _mediator.Send(new GetAllContactsQuery());

                if (dto.Any())
                {
                    var results = dto.Select(e => ContactModel.FromDTO(e));
                    return(new JsonResult(results));
                }
                else
                {
                    return(new JsonResult(new { ContentMessage = "No data found from DB" }));
                }
            }
            catch (Exception exception)
            {
                _logger.LogError(exception.Message, nameof(GetAllContacts));
                return(StatusCode(500, $"{exception.Message} : {exception.StackTrace}"));
            }
        }