Example #1
0
        public static API.Benefit TranslateFromApp(BaseEntity source)
        {
            var target = new API.Benefit();

            //Perform basic validation checks here.
            target.Name = ((App.Benefit)source).Name;
            return(target);
        }
Example #2
0
        public static BaseEntity TranslateFromDB(API.Benefit source)
        {
            var target = new App.Benefit();

            //Perform basic validation checks here.
            target.Name = source.Name;
            return(target);
        }