public ReturnMessage AddILO(ILODto model) { string query = $"EXECUTE SP_AddILO '{model.Text}','{model.CongitiveId}','{model.PlannerId}'"; var user = _db.Database.SqlQuery <ReturnMessage>(query).FirstOrDefault(); return(user); }
public IHttpActionResult AddILO([FromBody] ILODto model) { if (!ModelState.IsValid) { return(BadRequest("Invalid Model")); } var result = new SubjectService().AddILO(model); return(Ok(result)); }