public async Task <IHttpActionResult> DeleteMediaEmail(int id)
        {
            var userId = User.Identity.GetUserId <int>();

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var taskResult = await repository.DeleteMediaEmail(id);

            return(Ok(taskResult));
        }