Skip to content

Instantly share code, notes, and snippets.

@GeorgeWL
Created November 29, 2016 16:43
Show Gist options
  • Save GeorgeWL/f025fee788f1fedae492ff9e0f307f6c to your computer and use it in GitHub Desktop.
Save GeorgeWL/f025fee788f1fedae492ff9e0f307f6c to your computer and use it in GitHub Desktop.
not working with 5 errors.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Forest.Data;
using Forest.Services;
using Forest.Services.Service;
using Forest.Services.IService;
namespace Forest.Controllers
{
public class MusicAdminController : Controller
{
private IMusicService _musicService;
public MusicAdminController()
{
_musicService = new MusicService();
}
// GET: MusicAdmin
public ActionResult EditMusicRecording(int id)
{
return View(_musicService.EditMusicRecording(id));
}
}
// Errors commented in here
//Error 1 The best overloaded method match for 'Forest.Services.IService.IMusicService.EditMusicRecording(Forest.Data.Music_Recording)' has some invalid arguments F:\MyWork\Visual Studio 2013\Projects\Forest\Forest\Controllers\MusicAdminController.cs 23 25 Forest
//Error 2 Argument 1: cannot convert from 'int' to 'Forest.Data.Music_Recording' F:\MyWork\Visual Studio 2013\Projects\Forest\Forest\Controllers\MusicAdminController.cs 23 58 Forest
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment