public DeleteMessage_Result DeleteMessage(string msgID) { using (var db = new DBEntities()) { var Res = db.DeleteMessage(msgID).FirstOrDefault(); return(Res); } }