public ActionResult <Materials> GetById(int id) { try { return(db.GetById(id)); } catch (Exception) { throw; } }