Exemplo n.º 1
0
        public int CreateEmergencyContactDetails(UsersEmergencyContactViewModel usersEmergencyContactModel)
        {
            int isEmergencyContactCreated = 0;

            try
            {
                isEmergencyContactCreated = _context.usp_UsersEmergencyContact_Insert(usersEmergencyContactModel.UserID,
                                                                                      usersEmergencyContactModel.Name, usersEmergencyContactModel.Relationship, usersEmergencyContactModel.Mobile,
                                                                                      usersEmergencyContactModel.WorkMobile, usersEmergencyContactModel.Notes, usersEmergencyContactModel.CreatedBy);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(isEmergencyContactCreated);
        }