Beispiel #1
0
        public bool AddUserEmployementDetails(GetUserEmploymentDetails userVM)
        {
            l2g_tbl_UserEmployeementDetails user = MappingConfig.GetUserEmploymentDetailsToDataEntity(userVM);

            user.CreatedDate = DateTime.Now;
            try
            {
                db.l2g_tbl_UserEmployeementDetails.Add(user);
                db.SaveChanges();
            }
            catch (Exception) {
                return(false);
            }
            return(true);
        }