public async Task <IActionResult> Insert(AddImg addImg) { if (addImg.AddImage != null && addImg.AddImage.Length > 0) { var dto = new Img { AlbumId = addImg.AlbumId, Title = addImg.Title, Description = addImg.Description }; await service.Update(dto, GetFileBytes(addImg.AddImage)); } return(RedirectToAction("Insert", new { albumId = addImg.AlbumId })); }