i am trying to pass a dropdown selected value to database my datacontracts has the following code
public EnumTypes.RegardingObjectType RegardingObjectType { get; set; }
public Guid RegardingObjectId { get; set; }
enumtypes.cs has the following
public class EnumTypes
{
public enum RegardingObjectType
{
UnknownOrNone = 0,
Account = 1,
Cellsite = 2,
eventdal.cs has the following
private t_Event MapEventToEntity(Event newevent, t_Event eventToBeChanged)
{
eventToBeChanged.RegardingObjectType = int.Parse(newevent.RegardingObjectType.ToString());
it builds fine but getting exception while running