public IActionResult UploadCatImage(IFormFile files) { string newFileName = uploadFileRepository.UplaodFile(files, "\\Images\\Category\\"); return(Json(new { status = "success", message = "تصویر با موفقیت آپلود شد.", imagename = newFileName })); }
public IActionResult UploadCatImage(IFormFile files) { string newFileName = uploadFileRepository.UplaodFile(files, "\\Images\\Category\\"); return(Json(new { status = "success", message = "تصویر با موفقیت آپلود شد.", imagename = newFileName })); }