//UPDATE Product public static bool UpdateProduct(ProductViewModel paramEditEmp) { bool result = true; try { using (MarkomApplicationDBEntities db = new MarkomApplicationDBEntities()) { db.spProductUpdate( paramEditEmp.id , paramEditEmp.name , paramEditEmp.description , paramEditEmp.updateBy , paramEditEmp.updateDate ); } } catch (Exception ex) { Message = ex.Message; result = false; //throw; } return(result); }