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.7k
cannot convert from 'System.Enum' to 'byte'
Sep 23 2015 3:51 AM
Hi,
When I execute my project i getting error like this
cannot convert from 'System.Enum' to 'byte'
Error 5 The best overloaded method match for 'Kiwi.Service.BL.TeamManager.UpdateMemberRole(int, int, byte)' has some invalid arguments D:\Source Control\Kiwi\source\Service\Kiwi.Service.API.Controller\Controllers\TeamsController.cs 41 20 Kiwi.Service.API.Controller
This is my code :
[Route("{teamId}/metrics/{memberId}={memberrole}")]
public int UpdateMemberRole(int teamId,int memberId, Enum memberrole)
{
return _team.UpdateMemberRole(teamId, memberId, memberrole);
}
This is my MemberRole model class :
public enum MemberRole : short
{
Default = 1,
Observer = 2,
Moderator = 3
}
And this is my table :
Please give me a solution for that.
Thank you.
Reply
Answers (
5
)
send mail in Microsoft Office Outlook
I want to fill only tow colums from number of 10 colums