Click here to Skip to main content
15,892,005 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Cloud computing and private cloud computing security Pin
User 171649229-Mar-14 2:55
professionalUser 171649229-Mar-14 2:55 
QuestionUpdatePanel + Timer = Not Working Pin
GenJerDan28-Mar-14 7:15
GenJerDan28-Mar-14 7:15 
QuestionHTML5's new inputs. Black boxes that make layout a living hell? Pin
Sergejack28-Mar-14 3:22
Sergejack28-Mar-14 3:22 
AnswerRe: HTML5's new inputs. Black boxes that make layout a living hell? Pin
Kornfeld Eliyahu Peter28-Mar-14 4:47
professionalKornfeld Eliyahu Peter28-Mar-14 4:47 
GeneralRe: HTML5's new inputs. Black boxes that make layout a living hell? Pin
Sergejack28-Mar-14 4:55
Sergejack28-Mar-14 4:55 
AnswerRe: HTML5's new inputs. Black boxes that make layout a living hell? Pin
Kornfeld Eliyahu Peter29-Mar-14 7:46
professionalKornfeld Eliyahu Peter29-Mar-14 7:46 
SuggestionRe: HTML5's new inputs. Black boxes that make layout a living hell? Pin
W Balboos, GHB8-Apr-14 5:05
W Balboos, GHB8-Apr-14 5:05 
QuestionMVC WebAPI Controller Parameter Null Pin
Kevin Marois27-Mar-14 10:04
professionalKevin Marois27-Mar-14 10:04 
First, I a VERY new to WebAPI's and Web development overall, so please bear with me...

I'm calling this method on my controller:

[HttpGet]
public List<DateTime> GetDaysForAssignment(GetDaysForAssignmentEntity entity)
{
    return BO.GetDaysForAssignment(entity);
}


The GetDaysForAssignmentEntity entity is
[DataContract]
[Serializable]
public class GetDaysForAssignmentEntity : _BaseEntity
{
    [DataMember]
    public DateTime BeginDate { get; set; }

    [DataMember]
    public DateTime EndDate { get; set; }

    [DataMember]
    public string PhaseName { get; set; }

    [DataMember]
    public DateTime PhaseStartDate { get; set; }

    [DataMember]
    public string ShiftName { get; set; }

    [DataMember]
    public DateTime ShiftStartTime { get; set; }

    [DataMember]
    public DateTime AssignmentDate { get; set; }
}



Here's my proxy method:

public List<DateTime> GetDaysForAssignment(GetDaysForAssignmentEntity entity)
{
    WebAPIExecutor webAPIExecutor = new WebAPIExecutor("/JobAssignmentHeader/GetDaysForAssignment/", Method.GET);
    webAPIExecutor.AddParameter(entity, "entity");
    List<DateTime> results = webAPIExecutor.Execute<List<DateTime>>();
    return results;
}


I didn't the post the WebAPIExecutor code because it's working in hundreds of other places. I'll post it an anyone needs to see it.

When I make the call, when I get into the controller, the parameter is null.

I really have no clue how to debug this. I appreciate your help.
If it's not broken, fix it until it is

AnswerRe: MVC WebAPI Controller Parameter Null Pin
Matthew Dennis28-Mar-14 5:12
sysadminMatthew Dennis28-Mar-14 5:12 
GeneralRe: MVC WebAPI Controller Parameter Null Pin
Kevin Marois28-Mar-14 6:16
professionalKevin Marois28-Mar-14 6:16 
GeneralRe: MVC WebAPI Controller Parameter Null Pin
_Maxxx_15-Apr-14 20:12
professional_Maxxx_15-Apr-14 20:12 
GeneralRe: MVC WebAPI Controller Parameter Null Pin
Kevin Marois16-Apr-14 5:59
professionalKevin Marois16-Apr-14 5:59 
QuestionHelp with mysql duplicate row Pin
Izu Great26-Mar-14 0:54
professionalIzu Great26-Mar-14 0:54 
AnswerRe: Help with mysql duplicate row Pin
Kornfeld Eliyahu Peter26-Mar-14 1:02
professionalKornfeld Eliyahu Peter26-Mar-14 1:02 
GeneralRe: Help with mysql duplicate row Pin
Izu Great26-Mar-14 1:07
professionalIzu Great26-Mar-14 1:07 
AnswerRe: Help with mysql duplicate row Pin
ZurdoDev27-Mar-14 10:14
professionalZurdoDev27-Mar-14 10:14 
AnswerRe: Help with mysql duplicate row Pin
stevic9-Apr-14 7:07
professionalstevic9-Apr-14 7:07 
QuestionDecode or deobfuscate php Pin
Mahdi 8216102118-Mar-14 23:10
Mahdi 8216102118-Mar-14 23:10 
AnswerRe: Decode or deobfuscate php Pin
Richard Deeming19-Mar-14 2:56
mveRichard Deeming19-Mar-14 2:56 
GeneralRe: Decode or deobfuscate php Pin
Mahdi 8216102121-Mar-14 4:35
Mahdi 8216102121-Mar-14 4:35 
GeneralRe: Decode or deobfuscate php Pin
Richard Deeming21-Mar-14 5:01
mveRichard Deeming21-Mar-14 5:01 
GeneralRe: Decode or deobfuscate php Pin
Mahdi 8216102121-Mar-14 5:14
Mahdi 8216102121-Mar-14 5:14 
GeneralRe: Decode or deobfuscate php Pin
Richard Deeming21-Mar-14 5:26
mveRichard Deeming21-Mar-14 5:26 
GeneralRe: Decode or deobfuscate php Pin
Mahdi 8216102121-Mar-14 5:30
Mahdi 8216102121-Mar-14 5:30 
GeneralRe: Decode or deobfuscate php Pin
Richard Deeming21-Mar-14 6:01
mveRichard Deeming21-Mar-14 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.