asp.net mvc5 fullcalendar end parameter issue -


i'm making asp.net mvc program using fullcalendar works fine except 'end' factor. caused 'end' reserved word @ query.

$('#calendar').fullcalendar({                 //defaultdate: '2015-04-09',                 header: {                     left: '',                     center: 'title'                 },                 editable: true,                 eventlimit: true, // allow "more" link when many events                 selectable: true,                 events: '/home/getevents' });   public class task {    public int id { get; set; }          public string title { get; set; }          public string start { get; set; }          public string endtime { get; set; } }   public list<task> getall() {     list<task> tasklist = new list<task>();      tasklist = this._db.query<task>(             @"select taskid id                  , tasknm title                  , convert(varchar(10), taskfrom, 120) start                  , convert(varchar(10), taskto, 120) endtime               dbo.task").tolist();              return tasklist; }  public actionresult getevents() {      var tasklist = taskrepository.getall();                   return json(tasklist, jsonrequestbehavior.allowget); } 

i changed 'end' 'endtime' prevent using reserved word doesn't work. there method make works? in advance.

you can create variable reserved word using @ symbol. make @end should work.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -