public async Task <IActionResult> Add(ContactDto contactDto) { var contact = _mapper.Map <Contact>(contactDto); var result = await _contactManager.AddAsync(contact); if (result.IsSuccess) { return(Ok(new { Message = result.Message })); } return(BadRequest(new { Message = result.Message })); }