public IActionResult ProfileImageDelete([FromForm(Name = "Id")] int Id) { var forDelete = _userImageService.GetById(Id).Data; var result = _userImageService.ProfileImageDelete(forDelete); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }