public string Post([FromBody] Projectusertemplate projectusertemplate) { //Create db.Projectusertemplate.Add(projectusertemplate); db.SaveChanges(); return(JsonConvert.SerializeObject(projectusertemplate)); }
public string Delete([FromBody] Projectusertemplate projectusertemplate) { db.Projectusertemplate.Remove(projectusertemplate); db.SaveChanges(); return(JsonConvert.SerializeObject("Ok")); }
public void Put(int id, [FromBody] Projectusertemplate projectusertemplate) { //Update db.Projectusertemplate.Update(projectusertemplate); db.SaveChanges(); }