Ejemplo n.º 1
0
        public static string GetTindakanBasedOnResiko(string Category, string Resiko)
        {
            string tindakan = string.Empty;

            try
            {
                using (var dc = new PinereDataContext(PinereConstant.PinereConnectionString))
                {
                    var res = dc.GetTindakanBasedOnResiko(Category, Resiko).SingleOrDefault();
                    if (res != null)
                    {
                        tindakan = res.tindakan;
                    }
                }
                return(tindakan);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }