TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sivakumar
NA
551
217.8k
a return keyword must not be followed by anobject expression
Sep 24 2015 8:12 AM
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
Reply
Answers (
2
)
Display a Report from a selected grid Item
mvc razor