Beispiel #1
0
        protected void btnreplay_Click(object sender, EventArgs e)
        {
            FollowUpsApiModel f = new FollowUpsApiModel();

            f.FollowUpID = Convert.ToInt32(Request.QueryString["id"].ToString());
            HttpCookie myCookie = Request.Cookies["user"];

            f.Operator = myCookie.Values["username"].ToString();
            f.Replay   = ASPxMemo1.Text;
            f.save();
            Response.Redirect(Request.Url.AbsoluteUri);
        }
 // POST api/<controller>
 public void Post([FromBody] FollowUpsApiModel c)
 {
     c.CreationDate     = DateTime.Now;
     c.LastModifiedDate = DateTime.Now;
     c.save();
 }