public string UpdateWeekTimesheet(string id, string employeeid, string employeename, string clientid, string clientname, string startdate, string enddate, int status, string data) { //dynamic invoiceobject = System.Web.Helpers.Json.Decode(data); //string xmldocument = Newtonsoft.Json.JsonConvert.DeserializeXmlNode(data, "timesheet").InnerXml; //xmldocument = xmldocument.Replace(" ", ""); DataLayer datalayer = new DataLayer(); bool timesheetstat = datalayer.UpdateTimeSheet(id, Session["companyid"].ToString(), Session["userid"].ToString(), employeeid, employeename, clientid, clientname, startdate, enddate, data); return timesheetstat.ToString(); }