OutgoingRequestFrame.WithParamList(prx, _operationName, _idempotent, _compress, _format, context, paramList, _writer));
public string Post([FromBody] paramList list) { try { using (var db = new CustomerFeedbackDbContext()) { return(db.Appraisal.Find(Convert.ToInt32(list.appId)).appraisal_status); } } catch (Exception e) { return("0"); } }
public string Post([FromBody] paramList list) { try { using (var db = new CustomerFeedbackDbContext()) { var validateKey = db.Appraisal.Find(Convert.ToInt32(list.appId)).validate_key; String hashPass = PasswordHash.CreateHash(list.validateKey); if (PasswordHash.ValidatePassword(list.validateKey, validateKey)) { FormsAuthentication.Initialize(); FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket( 1, "CustomerConfig", DateTime.Now, DateTime.Now.AddMinutes(60), true, list.validateKey ); string encryptedTicket = FormsAuthentication.Encrypt(authTicket); // create cookie to contain encrypted auth ticket var authCookie = new HttpCookie("CustomerConfig", encryptedTicket); authCookie.Path = FormsAuthentication.FormsCookiePath; HttpContext.Current.Response.Cookies.Remove("CustomerConfig"); HttpContext.Current.Response.Cookies.Add(authCookie); return("1"); } } return("0"); } catch (Exception e) { return("0"); } }
public string Post([FromBody] paramList list) { setViewAppraisal(Convert.ToInt32(list.appId)); return("hitted"); }