Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
a return keyword must not be followed by anobject expression
Sivakumar
Sep 24 2015 8:12 AM
835
Reply
Hi,
This is my code :
public void CreateTeam(int teamid, string teamname,byte teamstatus)
{
Team team = new Team();
team.TeamID = teamid;
team.TeamName = teamname;
team.TeamStatus = teamstatus;
return
_DataContext.Teams.InsertOnSubmit(team);
}
Then it shows an error like this :
Error 1 Since 'Kiwi.Service.DL.DataAccess.CreateTeam(int, string, byte)' returns void, a return keyword must not be followed by an object expression D:\Source Control\Kiwi\source\Service\Kiwi.Service.DL\DataAccess.cs 160 9 Kiwi.Service.DL
Please resolve this error
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Display a Report from a selected grid Item
mvc razor