public HttpResponseMessage postnewfund(funds_table fund) { dbe.funds_table.Add(fund); dbe.SaveChanges(); return(Request.CreateResponse(HttpStatusCode.Accepted, "accepted fund")); }
public HttpResponseMessage addfundtoissue(int issueid, int amount, int userid) { funds_table funds = new funds_table { amount = amount, issue_id = issueid, fund_date = DateTime.Now, user_id = userid }; dbe.funds_table.Add(funds); dbe.SaveChanges(); return(Request.CreateResponse(HttpStatusCode.Accepted, "Saved")); }