public async Task <IActionResult> Add([FromForm] AddFotoDTO fotoDTO) { if (ModelState.IsValid) { if (fotoDTO.Foto != null && fotoDTO.Logo != null) { return(Ok(await _fotoService.AddFoto(fotoDTO))); } } ServiceResponse <GetFotoDTO> serviceResponse = new ServiceResponse <GetFotoDTO>(); serviceResponse.Success = false; serviceResponse.Data = null; serviceResponse.Message = "Bad Request"; return(BadRequest(serviceResponse)); }