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