/// <summary> /// 创建违规记录 /// </summary> /// <param name="violation"></param> /// <returns></returns> public bool CreateNewViolation(InfoEmployeeViolation violation) { bool isSuccess = false; userData.CreateViolation(violation); isSuccess = true; return(isSuccess); }